- Anonymous
Author | Committer | Branch | Timestamp | Parent |
---|---|---|---|---|
matthijskooijman | wwmayer | master | 2021-03-29 09:23:55 | master c712b2fe |
Changeset | Gui: Enable compression of tablet motion events By default (on platforms that support it, X11 and Windows currently) QT applies compression for high frequency events (mouse move, touch, window resizes) to keep things smooth even when handling the event takes a while (e.g. to calculate snapping). However, tablet pen move events (and mouse move events synthesised from those, which is what FreeCAD uses) are not compressed by default (to allow maximum precision when e.g. hand-drawing curves), leading to unacceptable slowdowns using a tablet pen. This commit enable compression for tablet events here to solve that and make use of a tablet just as smooth as a mouse with FreeCAD. This can (and likely will) lead to some movement events being dropped, but since there is no freeform curve drawing tool, that should not be problematic (and if it is ever added, it could still work without compression if the mouse movement event handler is written to be fast enough). |
|||
mod - src/Gui/Application.cpp | Diff File |