fix(slider): reduce event release delay in CustomSlider to improve responsiveness
This commit is contained in:
@@ -158,7 +158,7 @@ public class CustomSlider extends Component {
|
|||||||
|
|
||||||
public void releaseEvents() {
|
public void releaseEvents() {
|
||||||
synchronized (this) {
|
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.lastActionEventReleased = System.currentTimeMillis();
|
||||||
this.actionListener.actionPerformed(this.lastActionEvent);
|
this.actionListener.actionPerformed(this.lastActionEvent);
|
||||||
this.lastActionEvent = null;
|
this.lastActionEvent = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user