mirror of
https://github.com/stevenjoezhang/live2d-widget.git
synced 2024-11-26 14:47:02 +08:00
Update drag.js
This commit is contained in:
parent
617cbac8a1
commit
99dae2c3c2
2
drag.js
2
drag.js
@ -1,6 +1,6 @@
|
|||||||
<script>
|
<script>
|
||||||
//待拖拽的元素
|
//待拖拽的元素
|
||||||
let _img = document.getElementById('waifu');
|
let _img = document.getElementById('waifu-toggle');
|
||||||
//获取元素与浏览器的宽高
|
//获取元素与浏览器的宽高
|
||||||
let winWidth = window.innerWidth,
|
let winWidth = window.innerWidth,
|
||||||
winHeight = window.innerHeight,
|
winHeight = window.innerHeight,
|
||||||
|
Loading…
Reference in New Issue
Block a user