#809 autogwow when button is hold fixed

This commit is contained in:
2015-02-28 22:48:58 +01:00
parent ca30321d08
commit f8385fad28
2 changed files with 2 additions and 1 deletions
@@ -249,7 +249,7 @@ public class TextPanel extends JPanel {
}
private void translateX(int delta, int repeatCount) {
if (mainPanel.translateText(textTag, delta * repeatCount)) {
if (mainPanel.translateText(textTag, delta * (repeatCount + 1))) {
updateButtonsVisibility();
textTag.getSwf().clearImageCache();
mainPanel.refreshTree();
@@ -46,6 +46,7 @@ public class JRepeatButton extends JButton {
@Override
public void mousePressed(MouseEvent e) {
repeatCount = 0;
Runnable runnable = new Runnable() {
private int cnt = 0;