BMW - Broken Mouse Wheel 的评价
BMW - Broken Mouse Wheel 作者: Firefox 用户 13282525
3 条评价
- 评分 5 / 5来自 Yandong,5 年前
- 评分 5 / 5来自 Firefox 用户 11858178,7 年前Very cool thing, I'm working mainly with Touchpads or Trackballs, I didn't know what I was missing all the years. Thanks a bunch :)
开发者回应
发布于 7 年前Hello Herb, we just uploaded an advanced version of this extension. You can download it at: https://addons.mozilla.org/en-US/firefox/addon/broken-mouse-wheel/ - 评分 4 / 5来自 difabor,7 年前Something, like this:
var height = document.documentElement.scrollHeight;
var width = document.documentElement.scrollWidth;
function scroll(event){
var y = event.clientY;
var yPercentage = y/screen.height;
var x = event.clientX;
var xPercentage = x/screen.width;
//ctrlKey is subject to change as more features will be added
if (event.ctrlKey)
window.scrollTo(xPercentage*width,yPercentage*height);
}
window.onmousemove = scroll;
---------------------------------------------------------------------------
In addition I found, that this addon does not work on addons.mozilla.org (on mozilla.org it works)