solved: imp scrolling speed much too high

Sebastian Birnbach <[email protected]> Fri, 20 Sep 2019 10:34:08 +0200
Newsgroups gmane.comp.horde.devel
Message-ID <CACTNBFO85H+OyaofJoE2RHWP9TOTQBg6BMYrbWxsHobeajdB=w@mail.gmail.com>
I solved a big nuisance for me today, maybe somebody with the same problem
will stumble over this in the list archives.


I always felt that imp's vertical scrolling speed with the mouse wheel was
way too high. As I moved to an Apple Magic Mouse with a slide sensitive
surface rather than a wheel, working became hardly possible.

Changing the scrolling speed requires no more than tiny change in
imp/js/viewport.js, line 1411. Change this

if (delta) {

   this.moveScroll(this.currentOffset() + (Math.min(this.vp.getPageSize(),
3) * (delta > 0 ? -1 : 1)));

}

to this

if (delta) {

   this.moveScroll(this.currentOffset() + 1 * (delta > 0 ? -1 : 1)));

}

In your browser, reload the imp page and the cache (e.g. Opera on Mac:
CMD-OPT R) for the changes to take effect.

hth
-- 
dev mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: [email protected]