Update drag.js

This commit is contained in:
pymastera 2022-05-27 13:28:35 +08:00 committed by GitHub
parent 617cbac8a1
commit 99dae2c3c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,6 @@
<script>
//待拖拽的元素
let _img = document.getElementById('waifu');
let _img = document.getElementById('waifu-toggle');
//获取元素与浏览器的宽高
let winWidth = window.innerWidth,
winHeight = window.innerHeight,