JavaScript并拖入Firefox [英] javascript and dragging in firefox

查看:74
本文介绍了JavaScript并拖入Firefox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写一个脚本来使用javascript滚动div容器.不幸的是,它在Firefox中效果不佳.在firefox中,一旦我开始拖动旋钮,停止图标就会出现在光标旁边,然后我的脚本将无法获取mouseup-event.

I am writing a script to scroll a div container with javascript. Unfortunately it is not working that well in firefox. In firefox the stop-icon appears next to the cursor once I start dragging the knob and then my script is not able to get the mouseup-event.

有人知道如何解决此问题吗?

Does anyone have an idea how to fix this?

http://www.novuspix.de/scroll/

推荐答案

检查mousemove事件是否附加到documentwindow而不是.knob元素.

Check that mousemove event attached to document or window and not to the .knob element.

这篇关于JavaScript并拖入Firefox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆