How do I get clientX and clientY to work inside my “drag” event handler on Firefox?

后端 未结 3 1111
我在风中等你
我在风中等你 2021-01-05 00:13

Mozilla firefox 3.x seems to have a bug when listening to \"ondrag\" event. The event object doesn\'t report the position of the object being dragged, clientX, clientY and o

3条回答
  •  礼貌的吻别
    2021-01-05 00:50

    I know that there's cool stuff around such as setDragImage in HTML5 but I want to provide a generic abstraction for native DD between browsers.

    But why do something like this, aren't there libraries like JQuery & Prototype available for cross browser drag & drop?

    Or else if you want to implement a DD library of your own, you can take help of their methods or extend them, as both the libraries are following object oriented paradigm.

    This will save much time.

提交回复
热议问题