Comments (5)
Have you tried mapping 129 to 1 in INKTOOL:mouseButton?
Qt already reports two events for a double-click: The first one is a normal mouse click, the second one is reported as a double-click. By mapping this back to a normal click it should work (unless Qt does something else?)
from ipe.
I tried to map 129 to 1 in MODEL:mouseButtonAction() and it works. It does
not work by mapping 129 to 1 in INKTOOL:mouseButton. The reason is that the
MODEL:mouseButtonAction() function will block 129. So actually, I think 129
is not used any where in the Ipe program. Therefore it is probably safe to
map 129 to 1 inside MODEL:MouseButtonAction(). It is also a good design if
double clicks are not used at all.
My point here is that this may also need to be corrected in Ipe in the
released official version. The reason is that when writing using Inktool,
and writing quickly (at normal writing speed), the second stroke in two
consecutive strokes is reported (correctly) by Qt as a double click, but
Ipe should really accept 129 the second click as a normal click. I cannot
see any side effect of doing this, inside INKTOOL at least.
On Tue, Aug 4, 2015 at 3:19 AM, otfried [email protected] wrote:
Have you tried mapping 129 to 1 in INKTOOL:mouseButton?
Qt already reports two events for a double-click: The first one is a
normal mouse click, the second one is reported as a double-click. By
mapping this back to a normal click it should work (unless Qt does
something else?)—
Reply to this email directly or view it on GitHub
#3 (comment).
from ipe.
There are Ipe users that insist on having double-clicks as an alternative to the right mouse button, because their tablet pen does not have a right button. Double-clicks can be used to terminate paths, for instance.
So yes, 129 is used in some tools (see tools.lua and search for 0x81).
So I cannot simply get rid of the double-click events, and instead Ipe needs to handle them. It seems mapping it to 1 in MODEL:mouseButtonAction should be enough.
from ipe.
And yes, I've already included this in the official version for the next release.
from ipe.
Thanks.
from ipe.
Related Issues (20)
- Exported SVG is truncated HOT 1
- Feature request: command line file creation HOT 1
- Add translation. HOT 1
- Mouse click release does not work properly on drop-down menu HOT 8
- Change of symbolic value inside a view ignored in the PDF version HOT 4
- Occasional segfault when using luatex HOT 2
- Ipe 7.2.29 fails to start on Windows HOT 2
- Ipe 7.2.29 fails to run LaTex on Arch linux HOT 29
- View sorter wipes out changes of symbolic values HOT 1
- Undo runs LaTeX compilation unconditionally HOT 1
- Mark shapes not treated like other properties HOT 2
- [7.2.29] Ipe keeps "Waiting for external editor" after it closed HOT 2
- Ipe 7.2.30 fails to run on Ubuntu 24.04 LTS
- UI errors from moving graph nodes, sometimes seems to lead to crashes HOT 3
- Request to Implement XDG Base Directory Specification
- Upgrade dependency of gsl to 2.8 HOT 3
- Crashing during compile HOT 1
- Shift + scroll: opposite direction than other applications
- Menu flickering HOT 4
- Feature request: re-enable stretching objects to zero width or height
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ipe.