Web ページ上でマウスが移動する場所を (ピクセル単位で) 正確に記録しようとしています。次のコードがありますが、結果のデータにギャップがあります。
var mouse = new Array();
$("html").mousemove(function(e){
mouse.push(e.pageX + "," + e.pageY);
});
しかし、記録されたデータを見ると、これは私が見ているものの例です。
76,2 //start x,y
78,5 //moved right two pixels, down three pixels
78,8 //moved down three pixels
これは、次のようになります。
76,2 //start x,y
77,3 //missing
78,4 //missing
78,5 //moved right two pixels, down three pixels
78,6 //missing
78,7 //missing
78,8 //moved down three pixels
ピクセルごとのマウス移動データを保存するより良い方法はありますか? 私の目標は Web ページには非現実的すぎますか?