Giter Club home page Giter Club logo

Comments (5)

otfried avatar otfried commented on August 22, 2024

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.

 avatar commented on August 22, 2024

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.

otfried avatar otfried commented on August 22, 2024

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.

otfried avatar otfried commented on August 22, 2024

And yes, I've already included this in the official version for the next release.

from ipe.

 avatar commented on August 22, 2024

Thanks.

from ipe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.