read double click delay from Fyne

This commit is contained in:
Drew Weymouth
2024-07-27 08:51:00 -07:00
parent 44f0399f41
commit 6d6451c6f4
+1 -1
View File
@@ -126,7 +126,7 @@ func (l *FocusListRowBase) EnsureUnfocused() {
func (l *FocusListRowBase) Tapped(*fyne.PointEvent) {
prevTap := l.tappedAt
l.tappedAt = time.Now().UnixMilli()
if l.tappedAt-prevTap < 300 {
if l.tappedAt-prevTap < fyne.CurrentApp().Driver().DoubleTapDelay().Milliseconds() {
if l.OnDoubleTapped != nil {
l.OnDoubleTapped()
}