Skip to content

Commit

Permalink
Removed an unnecessary condition: !mouseDragStarted is always true if…
Browse files Browse the repository at this point in the history
… button == desktop.MouseButtonSecondary
  • Loading branch information
s77rt committed May 19, 2021
1 parent 1b2fb10 commit 9ce2455
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/driver/glfw/window.go
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,7 @@ func (w *window) mouseClicked(_ *glfw.Window, btn glfw.MouseButton, action glfw.
w.mouseLock.Unlock()
} else if action == glfw.Release {
if co == mousePressed {
if button == desktop.MouseButtonSecondary && altTap && !mouseDragStarted {
if button == desktop.MouseButtonSecondary && altTap {
w.QueueEvent(func() { co.(fyne.SecondaryTappable).TappedSecondary(ev) })
}
}
Expand Down

0 comments on commit 9ce2455

Please sign in to comment.