fwahlqvist / simile-widgets

Automatically exported from code.google.com/p/simile-widgets
0 stars 0 forks source link

TIMELINE: on mouse up event vertically scroll the timeline #38

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create an horizontal timeline with autoWidth= true. 
2. Add enough events to have your timeline taller than the actual window in
order to have to scroll vertically 
3. click on the timeline. When the "mouseup" event makes the timeline
scroll vertically 

What is the expected output?
No scroll.

What version of the product are you using? On what operating system?
pre2_3 but also affect previous release (MIT version before move to google)
on firefox3.

Please provide any additional information below.

I think that putting the focus on the hidden inputtext might be the cause.

Original issue reported on code.google.com by nicolas....@free.fr on 17 Nov 2008 at 1:56

GoogleCodeExporter commented 9 years ago
Putting the focus on the hidden "_keyboardInput" input makes the browser to 
scroll. 

If we replace :

Timeline._Band.prototype._onMouseUp=function(B,A,C){this._dragging=false;
this._keyboardInput.focus();
};

by 

Timeline._Band.prototype._onMouseUp=function(B,A,C){this._dragging=false;
};

The timeline does not scroll vertically on mouseup.
Unfortunately, the "arrow" keys don't work anymore.

Original comment by nicolas....@free.fr on 19 Mar 2009 at 1:28

GoogleCodeExporter commented 9 years ago

Original comment by stefano.mazzocchi@gmail.com on 25 Mar 2009 at 7:01

GoogleCodeExporter commented 9 years ago

Original comment by stefano.mazzocchi@gmail.com on 25 Mar 2009 at 7:04