Fixed: #1622 Slow scrolling (search results, advanced settings and others)

This commit is contained in:
Jindra Petřík
2021-03-05 21:22:55 +01:00
parent a597625239
commit b08567de7a
31 changed files with 116 additions and 56 deletions
@@ -0,0 +1,52 @@
/*
* Copyright (C) 2021 JPEXS
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.jpexs.decompiler.flash.gui;
import java.awt.Component;
import javax.swing.JScrollPane;
/**
*
* @author JPEXS
*/
public class FasterScrollPane extends JScrollPane {
public FasterScrollPane(Component view) {
super(view);
initSpeed();
}
public FasterScrollPane() {
super();
initSpeed();
}
public FasterScrollPane(int vsbPolicy, int hsbPolicy) {
super(vsbPolicy, hsbPolicy);
initSpeed();
}
public FasterScrollPane(Component view, int vsbPolicy, int hsbPolicy) {
super(view, vsbPolicy, hsbPolicy);
initSpeed();
}
private void initSpeed() {
getVerticalScrollBar().setUnitIncrement(20);
}
}