【发布时间】:2015-03-11 16:40:21
【问题描述】:
我可以在滚动事件中获得鼠标位置吗?
如果我有代码:
angular.element($window).bind("scroll", function() {
console.log("scroll");
// mouse position (x,y) ?
});
【问题讨论】:
-
滚动事件参数是偏移量而不是鼠标位置。您获得 mousemove 事件的鼠标位置。 stackoverflow.com/questions/18953144/…
标签: angularjs