Reset slider value to 0 on double-click

pull/75/head v1.24.7
James Ball 2022-05-24 21:26:52 +01:00 zatwierdzone przez James H Ball
rodzic 2fe68e3126
commit c63c91eeab
4 zmienionych plików z 7 dodań i 3 usunięć

Wyświetl plik

@ -1,3 +1,7 @@
- 1.24.7
- Double-click of slider resets value to 0 rather than min
- 1.24.6
- Effect text boxes are now editable
- Version number now visible in File menu

Wyświetl plik

@ -6,7 +6,7 @@
<groupId>sh.ball</groupId>
<artifactId>osci-render</artifactId>
<version>1.24.6</version>
<version>1.24.7</version>
<name>osci-render</name>

Wyświetl plik

@ -319,7 +319,7 @@ public class MainController implements Initializable, FrequencyListener, MidiLis
sliders.get(i).maxProperty().addListener(e -> updateClosestChannelToZero(sliders.get(finalI)));
sliders.get(i).setOnMouseClicked(event -> {
if (event.getClickCount() == 2) {
sliders.get(finalI).setValue(sliders.get(finalI).getMin());
sliders.get(finalI).setValue(0);
}
subControllers().forEach(SubController::slidersUpdated);
});

Wyświetl plik

@ -19,7 +19,7 @@
<menus>
<Menu mnemonicParsing="false" text="File">
<items>
<MenuItem disable="true" mnemonicParsing="false" text="osci-render v1.24.6" />
<MenuItem disable="true" mnemonicParsing="false" text="osci-render v1.24.7" />
<MenuItem fx:id="openProjectMenuItem" mnemonicParsing="false" text="Open Project">
<accelerator>
<KeyCodeCombination alt="UP" code="O" control="UP" meta="UP" shift="UP" shortcut="DOWN" />