fix(slider): reduce event release delay in CustomSlider to improve responsiveness

This commit is contained in:
extio-de
2025-12-29 18:32:10 +01:00
parent f09898b40b
commit 705c6a1f5a

View File

@@ -158,7 +158,7 @@ public class CustomSlider extends Component {
public void releaseEvents() {
synchronized (this) {
if (this.lastActionEvent != null && Math.abs(System.currentTimeMillis() - this.lastActionEventReleased) >= 200) {
if (this.lastActionEvent != null && Math.abs(System.currentTimeMillis() - this.lastActionEventReleased) >= 33) {
this.lastActionEventReleased = System.currentTimeMillis();
this.actionListener.actionPerformed(this.lastActionEvent);
this.lastActionEvent = null;