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
Merge branch 'master' of https://github.com/klamonte/jexer
[fanfix.git]
/
src
/
jexer
/
THScroller.java
diff --git
a/src/jexer/THScroller.java
b/src/jexer/THScroller.java
index a3599a9c25e09071b0217b1f86cb11f1aef40604..511bce9c2bebd82adfef88823037a0aafeb0e14c 100644
(file)
--- a/
src/jexer/THScroller.java
+++ b/
src/jexer/THScroller.java
@@
-158,12
+158,7
@@
public final class THScroller extends TWidget {
final int width) {
// Set parent and window
final int width) {
// Set parent and window
- super(parent);
-
- setX(x);
- setY(y);
- setHeight(1);
- setWidth(width);
+ super(parent, x, y, width, 1);
}
/**
}
/**
@@
-296,7
+291,7
@@
public final class THScroller extends TWidget {
return;
}
return;
}
- if ((mouse.
get
Mouse1())
+ if ((mouse.
is
Mouse1())
&& (inScroll)
&& (mouse.getX() > 0)
&& (mouse.getX() < getWidth() - 1)
&& (inScroll)
&& (mouse.getX() > 0)
&& (mouse.getX() < getWidth() - 1)