Open gralech opened 2 years ago
How much movement is "a bit"? at some point a tap has to become a drag event. We already support a move of 2pt to try and compensate for this.
hard to measure, obviously it's more than 2pt is it possible to disable completely drag? or increase 2pt compensation?
is it possible to disable completely drag?
If you do that then scrolling on mobile will break wont it? The 2 could be increased... but that removes precision for apps that care. For example if you have HiDPi (2 scale) and want to drag an item a short distance 5px is currently the smallest (2dp2 + 1). A reasonable minimum. If you double it then a drag operation won't start until 9px have been covered.
If you can describe why this will improve the UX we can review, but on the face of it I don't think the tradeoff would be worth it.
There will be no mobile version, so UX about mouse clicks in my case. Like i said, sometimes when i try to fast click UI element, it won't clicked. I understand, why this happens, but it very annoying. Is there a way to disable drag for my app only? Or to increase compensation?
There will be no mobile version, so UX about mouse clicks in my case
I understand that for your app it may not matter, but our standard widgets all have to work on all platforms, so we don't offer tweaks that will break them on some platforms.
Or to increase compensation?
This is a tricky one, it is at the driver level so increasing in one place to avoid a drag issue makes other desired drags much less responsive.
Checklist
Describe the bug
List and tree nodes not selected, if mouse moved after click Very annoying behaviour, sometimes items just not get selected I have to use button widget instead, wich have no this problem
How to reproduce
Screenshots
No response
Example code
package main
//__
import ( "fyne.io/fyne/v2" "fyne.io/fyne/v2/app" "fyne.io/fyne/v2/container" "fyne.io/fyne/v2/layout" "fyne.io/fyne/v2/widget" "log" )
//__
var content fyne.Container var tree widget.Tree var list map[string][]string
//__
func main() { myApp := app.New() myWindow := myApp.NewWindow("List") makeTree() top := widget.NewLabel("Items' list::") bottom := widget.NewButton("Update list", nil) content = container.New(layout.NewBorderLayout(top, bottom, nil, nil), top, tree, bottom, )
}
//__
func makeTree() { list = map[string][]string{ "": {"A"}, "A": {"B", "D"}, "B": {"C"}, "C": {"abc"}, "D": {"E"}, "E": {"F", "G"}, }
}
Fyne version
2.2.3
Go compiler version
1.18
Operating system
Windows
Operating system version
Windows 10
Additional Information
No response