Open GoogleCodeExporter opened 8 years ago
Sorry, a step is missing:
2.5) Horizontally scroll the browser window to the right
Original comment by ofr...@gmail.com
on 11 Mar 2009 at 3:49
I found this as well. There is an easy fix. In slideKnob(), you need to add
the
scroll position to x.
int scrollX = Window.getScrollLeft();
double percent = (double) (x + scrollX - lineLeft) / lineWidth * 1.0;
(There maybe some error handling you should do as well here, but I'm not sure
how
getScrollLeft fails or doesn't.)
DOM.eventGetClientX(event) returns coordinates in terms of the visible window,
not in
terms of the entire document.
Original comment by duckyshe...@gmail.com
on 13 Nov 2009 at 6:24
Original issue reported on code.google.com by
ofr...@gmail.com
on 11 Mar 2009 at 3:46