Changeset 9833 in josm for trunk


Ignore:
Timestamp:
2016-02-19T16:26:48+01:00 (9 years ago)
Author:
bastiK
Message:

fixed #12507 - slow mouse wheel scrolling (based on patch by kolesar)

Location:
trunk/src/org/openstreetmap/josm/gui
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/ExtendedDialog.java

    r9576 r9833  
    392392        if (placeContentInScrollPane) {
    393393            JScrollPane pane = new JScrollPane(cp);
     394            GuiHelper.setDefaultIncrement(pane);
    394395            pane.setBorder(null);
    395396            setContentPane(pane);
  • trunk/src/org/openstreetmap/josm/gui/dialogs/MapPaintDialog.java

    r9778 r9833  
    175175        InputMapUtils.addSpacebarAction(tblStyles, onoffAction);
    176176
    177         JScrollPane sp = new JScrollPane(p);
    178         GuiHelper.setDefaultIncrement(sp);
    179         createLayout(sp, false, Arrays.asList(
     177        createLayout(p, true, Arrays.asList(
    180178                new SideButton(onoffAction, false),
    181179                new SideButton(upAction, false),
  • trunk/src/org/openstreetmap/josm/gui/dialogs/ToggleDialog.java

    r9795 r9833  
    4646import javax.swing.JScrollPane;
    4747import javax.swing.JToggleButton;
     48import javax.swing.Scrollable;
    4849import javax.swing.SwingUtilities;
    4950
     
    6465import org.openstreetmap.josm.gui.preferences.SubPreferenceSetting;
    6566import org.openstreetmap.josm.gui.preferences.TabPreferenceSetting;
     67import org.openstreetmap.josm.gui.util.GuiHelper;
    6668import org.openstreetmap.josm.gui.widgets.PopupMenuLauncher;
    6769import org.openstreetmap.josm.tools.Destroyable;
     
    874876            Collection<SideButton>... nextButtons) {
    875877        if (scroll) {
    876             data = new JScrollPane(data);
     878            JScrollPane sp = new JScrollPane(data);
     879            if (!(data instanceof Scrollable)) {
     880                GuiHelper.setDefaultIncrement(sp);
     881            }
     882            data = sp;
    877883        }
    878884        LinkedList<Collection<SideButton>> buttons = new LinkedList<>();
  • trunk/src/org/openstreetmap/josm/gui/dialogs/properties/PropertiesDialog.java

    r9831 r9833  
    293293        selectSth.setPreferredSize(scrollPane.getSize());
    294294        presets.setSize(scrollPane.getSize());
    295         GuiHelper.setDefaultIncrement(scrollPane);
    296295
    297296        editHelper.loadTagsIfNeeded();
Note: See TracChangeset for help on using the changeset viewer.