Ne0nx3r0 / simile-widgets

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

Clicking nearly anything causes browser to jump when using lots of duration events #462

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a timeline, 2 bands, a theme with autoWidth=true (horizontal 
timeline),  zoomIndex=10, set 11 zoom steps (same from a zoom example I found).
2. Put a lot of duration events in it (> 3000, although It does it with fewer, 
I haven't found where its at).
3. Click the background, or duration band, try to bring up the bubble, 
sometimes even clicking the 'x' on the bubble does it.  It should jump far and 
away from where you were looking.  This is especially true if you scroll all 
the way to the bottom and try to inspect an element there.

What is the expected output? What do you see instead?

It shouldn't jump away from where the browser is scrolled to.

What version of the product are you using? On what browser and what
operating system?
Timeline 2.3.1, Chrome 12.0.742.112 (90304) & Firefox 5.0, Ubuntu 11.04

Please provide any additional information below.
I realize that trying to display this many events is probably an abuse of 
timeline, javascript and common sense.  You even have to tell the browser to 
continue after it reaches the js loop limit.  The expected end users may in 
fact try to do this and I'd like to fix the jump problem before that happens.  
I tried searching for many combinations of onclick, click, jump, scroll, etc 
without much success.  If this is a known problem and there's a simple fix, 
awesome!  If not I'll be happy to try and provide sanitized, simplified code 
snippets.

Thanks

Original issue reported on code.google.com by alex.br...@gmail.com on 9 Dec 2011 at 2:29

GoogleCodeExporter commented 9 years ago

Original comment by david.ka...@gmail.com on 23 Dec 2011 at 7:08

GoogleCodeExporter commented 9 years ago
I found a solution in this thread: 
https://groups.google.com/group/simile-widgets/browse_thread/thread/01294f8f4753
7d00/4372c229bb323bbb

I made the change in my local copy, doesn't randomly jump around any more.

Original comment by alex.br...@gmail.com on 20 Mar 2012 at 4:50