`<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<title>矩阵变换</title>
<style>
* {
margin: 0;
padding: 0;
}
#aaa {
width: 800px;
height: 800px;
position: absolute;
background: red;
}
.wrap {
height: 2000px;
position: relative;
;
}
</style>
</head>
<body>
<div class="wrap">
<div id='aaa'></div>
</div>
<link href="https://cdn.bootcss.com/jqueryui/1.12.1/jquery-ui.css" rel="stylesheet">
<script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js"></script>
<script src="https://cdn.bootcss.com/jqueryui/1.12.1/jquery-ui.js"></script>
<script>
$('#aaa').draggable();
$(window).on('mousemove', function (e) {
return false;
})
</script>
</body>
</html>`