how to completely ignore mouse wheel events?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

how to completely ignore mouse wheel events?

abergel
Hi!

Mouse wheel events are so poorly handled in Pharo, that they are not useful.
With Ronie we are seeing how we can better handle events with a window generated with SDL. But this is for the future.

Is there a way to easily unable them?

Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.




Reply | Threaded
Open this post in threaded view
|

Re: how to completely ignore mouse wheel events?

NorbertHartl
Ah,

I wanted to write such a mail for a long time. With my apple bluetooth mouse I always have the effect that just being close to the mouse produces hundreds of events and pharo is willing to interpret em all. Thus giving me rotating browsers and flipping windows.

Norbert

Am 15.04.2014 um 15:36 schrieb Alexandre Bergel <[hidden email]>:

> Hi!
>
> Mouse wheel events are so poorly handled in Pharo, that they are not useful.
> With Ronie we are seeing how we can better handle events with a window generated with SDL. But this is for the future.
>
> Is there a way to easily unable them?
>
> Cheers,
> Alexandre
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
>


Reply | Threaded
Open this post in threaded view
|

Re: how to completely ignore mouse wheel events?

Uko2
Can we disable side-scroll events? I’m using trackpad and… you know what happens.

Uko

On 15 Apr 2014, at 16:50, Norbert Hartl <[hidden email]> wrote:

> Ah,
>
> I wanted to write such a mail for a long time. With my apple bluetooth mouse I always have the effect that just being close to the mouse produces hundreds of events and pharo is willing to interpret em all. Thus giving me rotating browsers and flipping windows.
>
> Norbert
>
> Am 15.04.2014 um 15:36 schrieb Alexandre Bergel <[hidden email]>:
>
>> Hi!
>>
>> Mouse wheel events are so poorly handled in Pharo, that they are not useful.
>> With Ronie we are seeing how we can better handle events with a window generated with SDL. But this is for the future.
>>
>> Is there a way to easily unable them?
>>
>> Cheers,
>> Alexandre
>> --
>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>> Alexandre Bergel  http://www.bergel.eu
>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>
>>
>>
>>
>
>


Reply | Threaded
Open this post in threaded view
|

Re: how to completely ignore mouse wheel events?

abergel
In reply to this post by abergel
I have modified the following methods
        HandMorph>>generateKeyboardEvent: evtBuf
        ScrollPane>>scrollByKeyboard: event

The effect is now milder.

Esteban, would it make sense to remove the event generation bu the VM? This works only for the old-style mouse with an actual wheel. Mighty mouse does not work at all with Pharo.

We have to get this right. Emulation of events is a bad idea.

Alexandre


--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



On Apr 15, 2014, at 10:36 AM, Alexandre Bergel <[hidden email]> wrote:

> Hi!
>
> Mouse wheel events are so poorly handled in Pharo, that they are not useful.
> With Ronie we are seeing how we can better handle events with a window generated with SDL. But this is for the future.
>
> Is there a way to easily unable them?
>
> Cheers,
> Alexandre
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
>


Reply | Threaded
Open this post in threaded view
|

Re: how to completely ignore mouse wheel events?

EstebanLM
Hi,

On 17 Apr 2014, at 17:02, Alexandre Bergel <[hidden email]> wrote:

> I have modified the following methods
> HandMorph>>generateKeyboardEvent: evtBuf
> ScrollPane>>scrollByKeyboard: event
>
> The effect is now milder.
>
> Esteban, would it make sense to remove the event generation bu the VM? This works only for the old-style mouse with an actual wheel. Mighty mouse does not work at all with Pharo.

no, that does not has sense. We need it. What we need is to improve the events we have, not to remove them.  
Less than 0.1% of computer-using mankind uses mighty mouse. The rest uses regular mouses with old-fashion wheels (or trackpads, like myself).
So, removing is not a good idea. Not for VM, not for Pharo, and certainly not for Moose either.
Improve is the way to go :)

>
> We have to get this right. Emulation of events is a bad idea.

Yes! I agree and the way we are following is to remove emulation and transmit just raw events to the image (and let the image do the work of handling them).
Now it will take time, but we are going in that direction.

cheers,
Esteban

ps: btw… scroll events also has problems in wheel-mouses, but those, I’m not sure is a problem of VM or Pharo… I need to go deeper then (any insight would be cool) :)

>
> Alexandre
>
>
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
> On Apr 15, 2014, at 10:36 AM, Alexandre Bergel <[hidden email]> wrote:
>
>> Hi!
>>
>> Mouse wheel events are so poorly handled in Pharo, that they are not useful.
>> With Ronie we are seeing how we can better handle events with a window generated with SDL. But this is for the future.
>>
>> Is there a way to easily unable them?
>>
>> Cheers,
>> Alexandre
>> --
>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>> Alexandre Bergel  http://www.bergel.eu
>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>
>>
>>
>>
>


Reply | Threaded
Open this post in threaded view
|

Re: how to completely ignore mouse wheel events?

EstebanLM

On 17 Apr 2014, at 18:13, Esteban Lorenzano <[hidden email]> wrote:

> Hi,
>
> On 17 Apr 2014, at 17:02, Alexandre Bergel <[hidden email]> wrote:
>
>> I have modified the following methods
>> HandMorph>>generateKeyboardEvent: evtBuf
>> ScrollPane>>scrollByKeyboard: event
>>
>> The effect is now milder.
>>
>> Esteban, would it make sense to remove the event generation bu the VM? This works only for the old-style mouse with an actual wheel. Mighty mouse does not work at all with Pharo.
>
> no, that does not has sense. We need it. What we need is to improve the events we have, not to remove them.  
> Less than 0.1% of computer-using mankind uses mighty mouse. The rest uses regular mouses with old-fashion wheels (or trackpads, like myself).
> So, removing is not a good idea. Not for VM, not for Pharo, and certainly not for Moose either.
> Improve is the way to go :)
>
>>
>> We have to get this right. Emulation of events is a bad idea.
>
> Yes! I agree and the way we are following is to remove emulation and transmit just raw events to the image (and let the image do the work of handling them).
> Now it will take time, but we are going in that direction.

ah, forget to say: I have a lot of expectation around Ronie's work on SDL2 and OSWindow interface. I provide as much support as I can.

>
> cheers,
> Esteban
>
> ps: btw… scroll events also has problems in wheel-mouses, but those, I’m not sure is a problem of VM or Pharo… I need to go deeper then (any insight would be cool) :)
>
>>
>> Alexandre
>>
>>
>> --
>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>> Alexandre Bergel  http://www.bergel.eu
>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>
>>
>>
>> On Apr 15, 2014, at 10:36 AM, Alexandre Bergel <[hidden email]> wrote:
>>
>>> Hi!
>>>
>>> Mouse wheel events are so poorly handled in Pharo, that they are not useful.
>>> With Ronie we are seeing how we can better handle events with a window generated with SDL. But this is for the future.
>>>
>>> Is there a way to easily unable them?
>>>
>>> Cheers,
>>> Alexandre
>>> --
>>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>>> Alexandre Bergel  http://www.bergel.eu
>>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>>
>>>
>>>
>>>
>>
>


Reply | Threaded
Open this post in threaded view
|

Re: how to completely ignore mouse wheel events?

pharo4Stef@free.fr
In reply to this post by abergel

> I have modified the following methods
> HandMorph>>generateKeyboardEvent: evtBuf
> ScrollPane>>scrollByKeyboard: event
>
> The effect is now milder.
>
> Esteban, would it make sense to remove the event generation bu the VM? This works only for the old-style mouse with an actual wheel. Mighty mouse does not work at all with Pharo.
>
> We have to get this right. Emulation of events is a bad idea.

yes but we have to have time and money for that :)
If fernando would not have left like a thief it was on his roadmap.

Stef
>
> Alexandre
>
>


Reply | Threaded
Open this post in threaded view
|

Re: how to completely ignore mouse wheel events?

Nicolas Cellier
In reply to this post by EstebanLM

2014-04-17 18:13 GMT+02:00 Esteban Lorenzano <[hidden email]>:
Hi,

On 17 Apr 2014, at 17:02, Alexandre Bergel <[hidden email]> wrote:

> I have modified the following methods
>       HandMorph>>generateKeyboardEvent: evtBuf
>       ScrollPane>>scrollByKeyboard: event
>
> The effect is now milder.
>
> Esteban, would it make sense to remove the event generation bu the VM? This works only for the old-style mouse with an actual wheel. Mighty mouse does not work at all with Pharo.

no, that does not has sense. We need it. What we need is to improve the events we have, not to remove them.
Less than 0.1% of computer-using mankind uses mighty mouse. The rest uses regular mouses with old-fashion wheels (or trackpads, like myself).
So, removing is not a good idea. Not for VM, not for Pharo, and certainly not for Moose either.
Improve is the way to go :)


I'm in the 0.1% and though I handle the mouse as carefully as if it were a bubble of soap, those events are still popping in my face.
Sadly, the impression is that it takes minutes to break and ages to fix...
I hope the improvement is really decisive for the rest of the world, otherwise I'd like to say if you can't fix it, don't change it.

 
>
> We have to get this right. Emulation of events is a bad idea.

Yes! I agree and the way we are following is to remove emulation and transmit just raw events to the image (and let the image do the work of handling them).
Now it will take time, but we are going in that direction.

cheers,
Esteban

ps: btw… scroll events also has problems in wheel-mouses, but those, I’m not sure is a problem of VM or Pharo… I need to go deeper then (any insight would be cool) :)

>
> Alexandre
>
>
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
> On Apr 15, 2014, at 10:36 AM, Alexandre Bergel <[hidden email]> wrote:
>
>> Hi!
>>
>> Mouse wheel events are so poorly handled in Pharo, that they are not useful.
>> With Ronie we are seeing how we can better handle events with a window generated with SDL. But this is for the future.
>>
>> Is there a way to easily unable them?
>>
>> Cheers,
>> Alexandre
>> --
>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>> Alexandre Bergel  http://www.bergel.eu
>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>
>>
>>
>>
>