This looks like a UI bug. I can reproduce it in version 19.3 20 and latest. In 2 different win PCs. The bug is related to mouse click speed setting. For the fastest and second fastest setting it does not work, for slower ones it seems ok. Some other parts of Freecad handle double click correctly. It is possible that some code is trying to measure the delay and doing it badly instead of relaying on system events. Unfortunately mouse setting is not app specific so I can not have specific setting just for Freecad as workaroud. For now I do triple click which acts as double click should, but it is not convenient and makes me wonder which other pars of UI are broken like this.
I fond an old post with similar issue in Linux, but they never realized it was dependent on the mouse setting and it was not solved.
It is easy to reproduce. Change click speed and try edit the size by double click.
double click event does not open constran value edit dialog in scatch
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
Be nice to others! Read the FreeCAD code of conduct!
-
- Posts: 2
- Joined: Tue Aug 16, 2022 10:45 am
double click event does not open constran value edit dialog in scatch
- Attachments
-
- New0001.png (4.83 KiB) Viewed 1040 times
-
- New0000.png (21.02 KiB) Viewed 1040 times
Re: double click event does not open constran value edit dialog in scatch
Hi and welcome to the forum!
Please describe what happens and what you expect.
Please describe what happens and what you expect.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: double click event does not open constran value edit dialog in scatch
Following the requests in the red box at the top of the page is critical for this topic. Open FreeCAD and select Help >> About. Copy to your clipboard and paste here.
The behavior of double-click is completely controlled by Qt, a key library for FreeCAD. The behavior is different for Windows, Mac, and Linux.
Qt should follow the OS choice for click speed in Windows and Mac, but the interval is fixed for Linux.
Gene
Re: double click event does not open constran value edit dialog in scatch
I'm sorry I have to tell it's wrong, only in this specific case : https://github.com/FreeCAD/FreeCAD/blob ... h.cpp#L684
Double-click time is, in this case, measured internally by FreeCAD.
However, the code is correct and the problem isn't due to some basic error in the implementation.
The maximum double-click speed (minimum time) setting in Windows corresponds to 200 ms. This is rather short. While a human (in good conditions) should be able to double-click around 100~125 ms, then if you consider things that may happen to events in the OS+mouse driver, then in the runtime env (Qt) then in the applicative libs (Coin, Quarter) then finally in the application, at the end it could be a hardly reachable value.
I probed the code and, with a rather good computer, I can reach a time at application level of around 175~195 ms, but it's not rare that the value can be in the 201~225 ms range. Hence with a setting @200 ms, it won't trigger a double-click.
I guess that with a computer lacking power or being loaded, it could become the case every time.
I also observed that when doing a triple-click, the time (at application level) seems shorter between click 2 & 3 than between 1 & 2. I have no clue where it may come from (BKAC, OS/driver, runtime env ???) but it may explain why OP can get the "double-click" behavior by doing a triple-click, because timing between clicks 2 & 3 matches the expected value.
I don't know what could be a solution, and I'm actually not sure ATM that something needs to be done. Sometime we have to bet on the user to use reasonable settings.
Re: double click event does not open constran value edit dialog in scatch
I know this is an old thread, but I didn't find anything newer. I have this same double click issue. I'm on an M1 Mac Studio with (not quite the last MacOS upgrade, one shy). I'm on FreeCAD 0.21.2.33771. I've tried with a 3DConnexion mouse, a Wacom Tablet, an Apple mouse and an Apple Touchpad. I can NEVER get it to open on 2 clicks. I've changed the "double click" speed in Mac Settings from anywhere from Slow to fast as possible. Nothing helps (to get it to work in 2 clicks). If I click numerous times on the constraint setting, it will open the dialog box, but only if I click about 8-10 times in rapid succession.
If you know of a "reasonable setting" or even something unreasonable that would get this to work for me, I'm willing to try it. Double clicking in all other applications I run works as expected. Just not in FreeCAD.
Thanks.
-
- Veteran
- Posts: 3179
- Joined: Thu Sep 24, 2020 10:31 pm
- Location: Hawaii
- Contact:
Re: double click event does not open constran value edit dialog in scatch
I'm using an M1 Macbook Pro on Sonoma 14.4.1 with the settings below. Double clicking the constraints works for me every time, either with the Touchpad or my MX Master 2S Bluetooth mouse.
Code: Select all
OS: macOS 14.4.1
Word size of FreeCAD: 64-bit
Version: 0.22.0dev.36277 (Git)
Build type: Release
Branch: main
Hash: 9e1903d46112b3660bf10c6a4537d728101d560b
Python 3.10.13, Qt 5.15.8, Coin 4.0.2, Vtk 9.2.6, OCC 7.6.3
Locale: C/Default (C)
Installed mods:
* MeshRemodel 1.9.22
* DynamicData 2.60.0
* fcgear 1.0.0
* workfeature
* Curves.backup1710533229.314989 0.6.24 (Disabled)
* Pyramids-and-Polyhedrons
* QuickMeasure 2022.10.28
* GDML 2.0.0
* offline-documentation
* Manipulator 1.5.7
* fasteners 0.5.14
* lattice2 1.0.0
* CurvedShapes 1.0.5
* Alternate_OpenSCAD 1.0.0
* sheetmetal 0.4.3
* toSketch 1.0.1
* Help 1.0.3
* Curves 0.6.28
Re: double click event does not open constran value edit dialog in scatch
I was bitching about it in the past:
viewtopic.php?t=75469&hilit=double+clic ... 20#p655398
and
viewtopic.php?t=84441&hilit=double+clic ... 10#p733507
I tried going to double click, but ... it felt so un-natural that I went back to single click and accepted the issues
viewtopic.php?t=75469&hilit=double+clic ... 20#p655398
and
viewtopic.php?t=84441&hilit=double+clic ... 10#p733507
I tried going to double click, but ... it felt so un-natural that I went back to single click and accepted the issues
Code: Select all
OS: Debian GNU/Linux 11 (bullseye) (KDE/plasma)
Re: double click event does not open constran value edit dialog in scatch
Here is a PR that adds a command to the context-menu to allow to modify the value of a dimensional constraint: https://github.com/FreeCAD/FreeCAD/pull/13278