admin管理员组文章数量:1315792
The question is simple, but can't really find an answer.
How to simulate the drag & drop events using chrome developer tools ?
sure i can manually drag & drop the file, but then i can't inspect the changes in DOM.
The question is simple, but can't really find an answer.
How to simulate the drag & drop events using chrome developer tools ?
sure i can manually drag & drop the file, but then i can't inspect the changes in DOM.
Share Improve this question asked Jun 28, 2016 at 5:40 user1935987user1935987 3,34712 gold badges63 silver badges113 bronze badges2 Answers
Reset to default 6You can simulate Drag & Drop events with the jQuery Simulate library and the Drag & Drop extension for it, which uses the mousedown
, mousemove
and mouseup
events to achieve it.
You can also use Event Listener Breakpoints to pause execution on certain events. With the library above, you could pause execution on those mouse events.
You may drag and drop and observe the CSS class that gets activated. For example, jquery ui uses ".ui-state-hover"
Then you can edit the HTML tag in the Developer tools to add the class ui-state-hover and it will show permanently as if you're dragging something over it.
<li class="ui-tree-droppoint ui-droppable ui-state-hover">
本文标签: javascriptGoogle Chrome Developer Tools emulate drag and drop eventsStack Overflow
版权声明:本文标题:javascript - Google Chrome Developer Tools emulate drag and drop events - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741987540a2408772.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论