HTML5 with jQuery - e.offsetX is undefined in Firefox

前端 未结 5 1116
故里飘歌
故里飘歌 2020-12-13 23:07

In my HTML5 page, I have a div with mousemove event as follows:

$(\'#canvas\').mousemove(function(e){
    xpos = e.offsetX;
    ypos = e.offsetY         


        
5条回答
提交回复
热议问题