View unanswered posts | View active topics It is currently 2019-10-19 1:24



Reply to topic  [ 2 posts ] 
 拖动元素超过画布,不触发moveup事件 
Author Message
新手上路

Joined: 2019-04-03 17:52
Posts: 3
Post 拖动元素超过画布,不触发moveup事件
拖动节点的时候,如果超出画布,或者失去焦点,将不触发mouseup事件。有什么事件可以监听这个事件吗


2019-04-03 17:57
Profile
新手上路

Joined: 2019-03-04 14:41
Posts: 15
Post Re: 拖动元素超过画布,不触发moveup事件
你好,twaver框架确实是在鼠标移除画布后,就监听不到 mouseup 事件了,所以在此事件后的回调函数也没法执行了,你可以监听当 mousedown 时并将 mouseleave 时,你将 mouseup 需要干的事写在那个的监听里面吧


2019-04-04 11:24
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron