开发者

GWT setCapture works in Firefox too, how?

I have a draggable element in my page. When user starts dragging and then releases mouse button outside of Firefox I need to receive mouseup so that I can sto开发者_运维百科p dragging.

IE has setCapture for this but FF doesn't have. GWT has it too which works in FF too.

How does it works in FF? How can I do that in my JS code for FF?

(I like to know how it works, not just using xyz JS framework).


Well the answer is to add mousemove and mouseup event listener to document.

Thanks @Jeremy!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜