AlreadyM / jscrollpane

Automatically exported from code.google.com/p/jscrollpane
0 stars 0 forks source link

Computed drag height should be rounded to an integer #193

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
> What steps will reproduce the problem?

The details are described in the original message of this thread on the
jscrollpane list:

http://groups.google.com/group/jscrollpane/browse_thread/thread/f643a590218867ba
?hl=en

In short: not rounding the height to an integer value, combined with the
fact that the drag position can be non-integer too when recalculated as a
result of keyboard or mousewheel scrolling, results in a 1px gap or overlap
between pieces of the skin when a particular skinning technique is used.

The fix is trivial, just add Math.round() around the formula.

> What version of the jScrollPane are you using? On what browser? And
operating system?

Latest version, latest Firefox, Konqueror, and Opera beta on Linux

> Please provide a URL to a page displaying the problem.

I am sorry but the website displaying the problem is not launched yet.

Original issue reported on code.google.com by rula...@gmail.com on 14 May 2010 at 9:43

GoogleCodeExporter commented 9 years ago
This is related to issue 171. The workaround that suffers from the glitch 
reported
here wouldn't be necessary if 171 were fixed.

Original comment by rula...@gmail.com on 17 May 2010 at 12:46

GoogleCodeExporter commented 9 years ago
I have just announced the beta of a completely rewritten version of jScrollPane:

http://groups.google.com/group/jscrollpane/browse_thread/thread/c1bc1bf63e3f80d8

Please test and reply on the list if you are still having this issue,

Thanks,

Kelvin

Original comment by kelvin.l...@gmail.com on 17 Aug 2010 at 4:19