[Cuis-dev] MouseButton2 Handler Proposal
Juan Vuletich
juan at cuis.st
Mon May 19 08:02:34 PDT 2025
On 5/15/2025 1:02 PM, Joel Camera via Cuis-dev wrote:
> Hi again folks!
> This is a proposal for the mouseButton2Down:localPosition: and
> mouseButton2Up:localPosition:.
> The thing is that they don't work the same as mouseButton1* that have
> a property and if you set that property to the morph with a handler,
> that handler will run when the event happens. If you want to use
> mouseButton2*, you have to add an extended method or
> subclassify (depending on what you are doing).
>
> So the proposal is to have the property like the mouseButton1*
> handlers. With this, it will be easier to use those events.
> The call to #mouseButton2Activity in
> #mouseButton2Down:localPosition is not going to be changed.
>
> <https://10pines.com/>
>
>
> Joel Cámera
>
>
> Agile Software Development
>
>
> Alem 896, Floor 6, Buenos Aires, Argentina
>
> +54 9 011 6091 3125
>
Nice! Did a small change, though. The the #button2Activity won't be run
by default if the property custom action was sent. This is to avoid 2
actions for a single user action. If the custom action wants, they can
call the #button2Activity themselves.
Thanks!
--
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20250519/59cca3de/attachment.htm>
More information about the Cuis-dev
mailing list