mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Trackster: remove mousewheel scrolling amplifier and clarify comment.
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user