View | Details | Raw Unified | Return to bug 59995
Collapse All | Expand All

(-)src/core/org/apache/jmeter/gui/MainFrame.java (+13 lines)
Lines 241-246 Link Here
241
        init();
241
        init();
242
        initTopLevelDndHandler();
242
        initTopLevelDndHandler();
243
        setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);
243
        setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);
244
        
245
        addMouseWheelListener(e -> {
246
            if (e.isControlDown()) {
247
                final float scale = 1.1f;
248
                int rotation = e.getWheelRotation();
249
                if (rotation > 0) { // DOWN
250
                    JMeterUtils.applyScaleOnFonts(1.0f/scale);
251
                } else if (rotation < 0) { // UP
252
                    JMeterUtils.applyScaleOnFonts(scale);
253
                }
254
                e.consume();
255
            }
256
        });
244
    }
257
    }
245
258
246
    protected void computeTestDuration() {
259
    protected void computeTestDuration() {

Return to bug 59995