git://git.nikiroo.be
/
fanfix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
checkstyle sweep
[fanfix.git]
/
src
/
jexer
/
THScroller.java
diff --git
a/src/jexer/THScroller.java
b/src/jexer/THScroller.java
index eb7256bcab8e8f181185e9e50c03453db9f9b6db..54f3c0b90054aec0511f933751e533664966c1f7 100644
(file)
--- a/
src/jexer/THScroller.java
+++ b/
src/jexer/THScroller.java
@@
-297,7
+297,8
@@
public final class THScroller extends TWidget {
&& (mouse.getX() < getWidth() - 1)
) {
// Recompute value based on new box position
&& (mouse.getX() < getWidth() - 1)
) {
// Recompute value based on new box position
- value = (rightValue - leftValue) * (mouse.getX()) / (getWidth() - 3) + leftValue;
+ value = (rightValue - leftValue)
+ * (mouse.getX()) / (getWidth() - 3) + leftValue;
return;
}
inScroll = false;
return;
}
inScroll = false;