read double click delay from Fyne
This commit is contained in:
@@ -126,7 +126,7 @@ func (l *FocusListRowBase) EnsureUnfocused() {
|
|||||||
func (l *FocusListRowBase) Tapped(*fyne.PointEvent) {
|
func (l *FocusListRowBase) Tapped(*fyne.PointEvent) {
|
||||||
prevTap := l.tappedAt
|
prevTap := l.tappedAt
|
||||||
l.tappedAt = time.Now().UnixMilli()
|
l.tappedAt = time.Now().UnixMilli()
|
||||||
if l.tappedAt-prevTap < 300 {
|
if l.tappedAt-prevTap < fyne.CurrentApp().Driver().DoubleTapDelay().Milliseconds() {
|
||||||
if l.OnDoubleTapped != nil {
|
if l.OnDoubleTapped != nil {
|
||||||
l.OnDoubleTapped()
|
l.OnDoubleTapped()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user