Trackster: remove mousewheel scrolling amplifier and clarify comment.

This commit is contained in:
Jeremy Goecks
2014-06-23 16:11:46 -04:00
parent 0fda9feb0f
commit 39406fd0ef
+4 -5
View File
@@ -1070,11 +1070,10 @@ var TracksterView = Backbone.View.extend({
var delta_chrom = Math.round(delta / view.viewport_container.width() * (view.high - view.low));
view.move_delta(delta_chrom);
// Also capture mouse wheel for left/right scrolling
}).bind( 'mousewheel', function( e, d, dx, dy ) {
// Only act on x axis scrolling if we see if, y will be i
// handled by the browser when the event bubbles up
if ( dx ) {
dx *= 50;
}).bind( 'mousewheel', function( e, d, dx, dy ) {
// Only handle x axis scrolling; y axis scrolling is
// handled by the browser when the event bubbles up.
if (dx) {
var delta_chrom = Math.round( - dx / view.viewport_container.width() * (view.high - view.low) );
view.move_delta( delta_chrom );
}