Scrollbars respond to mouse dragging more naturally

This commit is contained in:
2023-01-21 01:24:24 -05:00
parent d435f5a6a9
commit 92a9c9370d
2 changed files with 11 additions and 12 deletions

View File

@@ -272,10 +272,7 @@ func (window *Window) compressMotionNotify (
typedEvent, ok := untypedEvent.Event.(xproto.MotionNotifyEvent)
if !ok { continue }
if firstEvent.Event == typedEvent.Event &&
typedEvent.Detail >= 4 &&
typedEvent.Detail <= 7 {
if firstEvent.Event == typedEvent.Event {
lastEvent = typedEvent
defer func (index int) {
xevent.DequeueAt(window.backend.connection, index)