qiangzi7723 / draggable Goto Github PK
View Code? Open in Web Editor NEW打造跨平台的轻量级原生JS拖拽组件库
打造跨平台的轻量级原生JS拖拽组件库
在有滚动条的时候点上去拖拽div就跑别的地方去了,源码171行this.targetDom.style.position = 'relative';改成fixed后并未发现异常
源码中Math.max(16 - now - lastTime, 0);这个值一直都是0,16 - now - lastTime一直是负数。
所以正常的写法是不是应该是Math.max(16 - (now - lastTime), 0);
希望能提供增加事件绑定接口
复现:
首先拖拽框那个div里面有文字,拖拽的时候很有可能会导致选里面的文字,里面的文字变成蓝色,这时候放开鼠标,拖拽框跟粘在鼠标上一样,无法放开,只能通过再次点击鼠标才能把拖拽框放到想要放的位置
是我有参数没有设置,还是就是有这个问题呢?
grid我设置成y:1,好像上下移动还是以默认40的移动
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.