[Cuis-dev] [IMPROV] Mouse Wheel Events

Gerald Klix cuis.01 at klix.ch
Fri Aug 20 10:42:18 PDT 2021


Hi Nicola,

thanks a bunch.

On 8/20/21 7:10 PM, Nicola Mingotti via Cuis-dev wrote:
> 
> Hi Gerald,
> 
> yes, i will put that line in my startup file, that is my way ;)
It only was intended as a solution for you.
> 
> I did your test, it was real quick, i thought it was longer.
> 
> here is a bit of output, let me know if you need more, i am in office 
> for about another 1 hour.
I suppose it's enough to identify the cause; what a mess!
See my comments at the end of our output.
Actually we could deal with that "swapped" behavior,
but it feels like "Zombie lifting", I don't
want to do it.
> 
> ----------------------------------------------------------------------------------------------------- 
> 
> Extra Note. I found another little issues, trying to copy all fro the 
> Workspace to Thunderbird does not work,
> some sequence of character probably are fatal. I divided in 3 blocks.
> the first block has given more issues, espcially the line marked (*issues*)
Yeah, suppose they form the begining of some UTF-8 sequence ...
Don't bother, next time save the workspace to a file.
> 
> I tried to copy also in a GMaiil web pane in Firefox, same problem, i 
> try to copy all,
> i paste and i get this
> ----
> Transcript
> Transcript
> keyUp macRomanCode:251-Þ- unicodeCodePoint:0-
> ----
> -------------------------------------------------------------------------------------------------- 
> 
> 
> 
> bye
> Nicola
> 
> 
> 
> ============================================
> (*issues*) keyUp macRomanCode:251-Þ- unicodeCodePoint:0-- modifiers:0#(2 
> 270842 251 2 0 0 0 0)
> keyUp macRomanCode:100-d- unicodeCodePoint:100-d- modifiers:0#(2 270856 
> 100 2 0 100 0 0)
> ----
> Mouse position:492 at 1057 buttons:0 modifiers:0#(1 271200 492 1057 0 0 0 0)
> Mouse position:502 at 1061 buttons:0 modifiers:0#(1 271208 502 1061 0 0 0 0)
> Mouse position:514 at 1065 buttons:0 modifiers:0#(1 271217 514 1065 0 0 0 0)
> Mouse position:546 at 1073 buttons:0 modifiers:0#(1 271231 546 1073 0 0 0 0)
> Mouse position:594 at 1083 buttons:0 modifiers:0#(1 271247 594 1083 0 0 0 0)
> Mouse position:624 at 1089 buttons:0 modifiers:0#(1 271255 624 1089 0 0 0 0)
> Mouse position:656 at 1093 buttons:0 modifiers:0#(1 271263 656 1093 0 0 0 0)
> Mouse position:690 at 1099 buttons:0 modifiers:0#(1 271271 690 1099 0 0 0 0)
> Mouse position:766 at 1109 buttons:0 modifiers:0#(1 271287 766 1109 0 0 0 0)
> Mouse position:806 at 1113 buttons:0 modifiers:0#(1 271295 806 1113 0 0 0 0)
> Mouse position:850 at 1119 buttons:0 modifiers:0#(1 271304 850 1119 0 0 0 0)
> Mouse position:896 at 1121 buttons:0 modifiers:0#(1 271312 896 1121 0 0 0 0)
> Mouse position:944 at 1123 buttons:0 modifiers:0#(1 271320 944 1123 0 0 0 0)
> Mouse position:1040 at 1125 buttons:0 modifiers:0#(1 271336 1040 1125 0 0 0 0)
> Mouse position:1084 at 1125 buttons:0 modifiers:0#(1 271342 1084 1125 0 0 0 0)
> Mouse position:1128 at 1125 buttons:0 modifiers:0#(1 271350 1128 1125 0 0 0 0)
> Mouse position:1166 at 1123 buttons:0 modifiers:0#(1 271358 1166 1123 0 0 0 0)
> Mouse position:1206 at 1121 buttons:0 modifiers:0#(1 271369 1206 1121 0 0 0 0)
> Mouse position:1242 at 1117 buttons:0 modifiers:0#(1 271377 1242 1117 0 0 0 0)
> Mouse position:1276 at 1111 buttons:0 modifiers:0#(1 271385 1276 1111 0 0 0 0)
> Mouse position:1308 at 1107 buttons:0 modifiers:0#(1 271393 1308 1107 0 0 0 0)
> Mouse position:1340 at 1099 buttons:0 modifiers:0#(1 271401 1340 1099 0 0 0 0)
> Mouse position:1370 at 1093 buttons:0 modifiers:0#(1 271407 1370 1093 0 0 0 0)
> Mouse position:1428 at 1079 buttons:0 modifiers:0#(1 271423 1428 1079 0 0 0 0)
> Mouse position:1454 at 1071 buttons:0 modifiers:0#(1 271431 1454 1071 0 0 0 0)
> Mouse position:1478 at 1065 buttons:0 modifiers:0#(1 271439 1478 1065 0 0 0 0)
> Mouse position:1526 at 1049 buttons:0 modifiers:0#(1 271455 1526 1049 0 0 0 0)
> Mouse position:1548 at 1041 buttons:0 modifiers:0#(1 271464 1548 1041 0 0 0 0)
> Mouse position:1564 at 1033 buttons:0 modifiers:0#(1 271472 1564 1033 0 0 0 0)
> Mouse position:1582 at 1025 buttons:0 modifiers:0#(1 271480 1582 1025 0 0 0 0)
> Mouse position:1608 at 1007 buttons:0 modifiers:0#(1 271496 1608 1007 0 0 0 0)
> Mouse position:1620 at 997 buttons:0 modifiers:0#(1 271504 1620 997 0 0 0 0)
> Mouse position:1630 at 987 buttons:0 modifiers:0#(1 271512 1630 987 0 0 0 0)
> Mouse position:1638 at 979 buttons:0 modifiers:0#(1 271518 1638 979 0 0 0 0)
> Mouse position:1656 at 957 buttons:0 modifiers:0#(1 271534 1656 957 0 0 0 0)
> Mouse position:1664 at 947 buttons:0 modifiers:0#(1 271543 1664 947 0 0 0 0)
> Mouse position:1670 at 937 buttons:0 modifiers:0#(1 271551 1670 937 0 0 0 0)
> Mouse position:1680 at 925 buttons:0 modifiers:0#(1 271559 1680 925 0 0 0 0)
> Mouse position:1688 at 913 buttons:0 modifiers:0#(1 271567 1688 913 0 0 0 0)
> Mouse position:1696 at 903 buttons:0 modifiers:0#(1 271575 1696 903 0 0 0 0)
> Mouse position:1704 at 891 buttons:0 modifiers:0#(1 271583 1704 891 0 0 0 0)
> Mouse position:1710 at 881 buttons:0 modifiers:0#(1 271591 1710 881 0 0 0 0)
> Mouse position:1722 at 869 buttons:0 modifiers:0#(1 271599 1722 869 0 0 0 0)
> Mouse position:1730 at 859 buttons:0 modifiers:0#(1 271607 1730 859 0 0 0 0)
> Mouse position:1742 at 847 buttons:0 modifiers:0#(1 271617 1742 847 0 0 0 0)
> Mouse position:1754 at 835 buttons:0 modifiers:0#(1 271625 1754 835 0 0 0 0)
> Mouse position:1764 at 825 buttons:0 modifiers:0#(1 271633 1764 825 0 0 0 0)
> Mouse position:1778 at 815 buttons:0 modifiers:0#(1 271641 1778 815 0 0 0 0)
> Mouse position:1790 at 803 buttons:0 modifiers:0#(1 271650 1790 803 0 0 0 0)
> Mouse position:1812 at 781 buttons:0 modifiers:0#(1 271664 1812 781 0 0 0 0)
> Mouse position:1824 at 771 buttons:0 modifiers:0#(1 271672 1824 771 0 0 0 0)
> Mouse position:1834 at 759 buttons:0 modifiers:0#(1 271680 1834 759 0 0 0 0)
> Mouse position:1842 at 747 buttons:0 modifiers:0#(1 271688 1842 747 0 0 0 0)
> Mouse position:1852 at 737 buttons:0 modifiers:0#(1 271694 1852 737 0 0 0 0)
> Mouse position:1868 at 717 buttons:0 modifiers:0#(1 271711 1868 717 0 0 0 0)
> Mouse position:1876 at 705 buttons:0 modifiers:0#(1 271719 1876 705 0 0 0 0)
> Mouse position:1886 at 695 buttons:0 modifiers:0#(1 271727 1886 695 0 0 0 0)
> Mouse position:1896 at 685 buttons:0 modifiers:0#(1 271735 1896 685 0 0 0 0)
> Mouse position:1906 at 675 buttons:0 modifiers:0#(1 271743 1906 675 0 0 0 0)
> Mouse position:1914 at 665 buttons:0 modifiers:0#(1 271751 1914 665 0 0 0 0)
> Mouse position:1924 at 657 buttons:0 modifiers:0#(1 271759 1924 657 0 0 0 0)
> Mouse position:1932 at 647 buttons:0 modifiers:0#(1 271767 1932 647 0 0 0 0)
> Mouse position:1938 at 637 buttons:0 modifiers:0#(1 271775 1938 637 0 0 0 0)
> Mouse position:1944 at 629 buttons:0 modifiers:0#(1 271783 1944 629 0 0 0 0)
> Mouse position:1950 at 623 buttons:0 modifiers:0#(1 271793 1950 623 0 0 0 0)
> Mouse position:1954 at 617 buttons:0 modifiers:0#(1 271801 1954 617 0 0 0 0)
> Mouse position:1956 at 611 buttons:0 modifiers:0#(1 271810 1956 611 0 0 0 0)
> Mouse position:1960 at 607 buttons:0 modifiers:0#(1 271818 1960 607 0 0 0 0)
> Mouse position:1962 at 601 buttons:0 modifiers:0#(1 271826 1962 601 0 0 0 0)
> Mouse position:1962 at 593 buttons:0 modifiers:0#(1 271840 1962 593 0 0 0 0)
> Mouse position:1964 at 587 buttons:0 modifiers:0#(1 271848 1964 587 0 0 0 0)
> Mouse position:1964 at 585 buttons:0 modifiers:0#(1 271854 1964 585 0 0 0 0)
> Mouse position:1964 at 579 buttons:0 modifiers:0#(1 271862 1964 579 0 0 0 0)
> Mouse position:1964 at 575 buttons:0 modifiers:0#(1 271870 1964 575 0 0 0 0)
> Mouse position:1964 at 571 buttons:0 modifiers:0#(1 271881 1964 571 0 0 0 0)
> Mouse position:1964 at 569 buttons:0 modifiers:0#(1 271889 1964 569 0 0 0 0)
> Mouse position:1964 at 565 buttons:0 modifiers:0#(1 271897 1964 565 0 0 0 0)
> Mouse position:1964 at 561 buttons:0 modifiers:0#(1 271905 1964 561 0 0 0 0)
> Mouse position:1964 at 559 buttons:0 modifiers:0#(1 271913 1964 559 0 0 0 0)
> Mouse position:1964 at 557 buttons:0 modifiers:0#(1 271921 1964 557 0 0 0 0)
> Mouse position:1964 at 553 buttons:0 modifiers:0#(1 271931 1964 553 0 0 0 0)
> Mouse position:1964 at 551 buttons:0 modifiers:0#(1 271939 1964 551 0 0 0 0)
> Mouse position:1964 at 549 buttons:0 modifiers:0#(1 271947 1964 549 0 0 0 0)
> Mouse position:1966 at 547 buttons:0 modifiers:0#(1 271955 1966 547 0 0 0 0)
> Mouse position:1966 at 543 buttons:0 modifiers:0#(1 271963 1966 543 0 0 0 0)
> Mouse position:1966 at 541 buttons:0 modifiers:0#(1 271971 1966 541 0 0 0 0)
> Mouse position:1966 at 539 buttons:0 modifiers:0#(1 271979 1966 539 0 0 0 0)
> Mouse position:1966 at 533 buttons:0 modifiers:0#(1 271987 1966 533 0 0 0 0)
> Mouse position:1966 at 531 buttons:0 modifiers:0#(1 271995 1966 531 0 0 0 0)
> Mouse position:1966 at 527 buttons:0 modifiers:0#(1 272006 1966 527 0 0 0 0)
> Mouse position:1966 at 525 buttons:0 modifiers:0#(1 272014 1966 525 0 0 0 0)
> Mouse position:1966 at 521 buttons:0 modifiers:0#(1 272022 1966 521 0 0 0 0)
> Mouse position:1966 at 517 buttons:0 modifiers:0#(1 272030 1966 517 0 0 0 0)
> Mouse position:1966 at 515 buttons:0 modifiers:0#(1 272038 1966 515 0 0 0 0)
> Mouse position:1966 at 513 buttons:0 modifiers:0#(1 272046 1966 513 0 0 0 0)
> Mouse position:1968 at 511 buttons:0 modifiers:0#(1 272054 1968 511 0 0 0 0)
> Mouse position:1968 at 509 buttons:0 modifiers:0#(1 272063 1968 509 0 0 0 0)
> Mouse position:1968 at 507 buttons:0 modifiers:0#(1 272079 1968 507 0 0 0 0)
> Mouse position:1970 at 507 buttons:0 modifiers:0#(1 272095 1970 507 0 0 0 0)
> Mouse position:1970 at 505 buttons:0 modifiers:0#(1 272111 1970 505 0 0 0 0)
Here the shit starts, I presume you scrolled up, the VM reports a scroll
to the left. (-120 in the X coordinate)
> Scroll delta:-120 at 0 buttons:0 modifiers:0#(7 272770 -120 0 0 0 0 0)
> Scroll delta:-120 at 0 buttons:0 modifiers:0#(7 272806 -120 0 0 0 0 0)
> Scroll delta:-120 at 0 buttons:0 modifiers:0#(7 272831 -120 0 0 0 0 0)
> Scroll delta:-120 at 0 buttons:0 modifiers:0#(7 272871 -120 0 0 0 0 0)
> Scroll delta:-120 at 0 buttons:0 modifiers:0#(7 272919 -120 0 0 0 0 0)
That's a scroll down, which is reported ok (120 in the Y coordinate)
> Scroll delta:0 at 120 buttons:0 modifiers:0#(7 273136 0 120 0 0 0 0)
> Scroll delta:0 at 120 buttons:0 modifiers:0#(7 273160 0 120 0 0 0 0)
> Scroll delta:0 at 120 buttons:0 modifiers:0#(7 273176 0 120 0 0 0 0)
> Scroll delta:0 at 120 buttons:0 modifiers:0#(7 273207 0 120 0 0 0 0)
> Scroll delta:0 at 120 buttons:0 modifiers:0#(7 273255 0 120 0 0 0 0)
> -----
> keyDown macRomanCode:120-x- unicodeCodePoint:120-x- modifiers:0#(2 
> 275549 120 1 0 120 0 0)
> keystroke macRomanCode:120-x- unicodeCodePoint:120-x- modifiers:0#(2 
> 275549 120 0 0 120 0 0)
> an EventSensor
> Smalltalk
> =============================================
> 
> 
> 
> On 8/20/21 7:00 PM, Gerald Klix wrote:
>> For the time being use that
>> `Smalltalk sendMouseWheelEvents: false` workaround
>> for the image of your preference.
>>
>> On 8/20/21 6:44 PM, Nicola Mingotti wrote:
>>>
>>> Hi guys,
>>>
>>> tell me what to do, I don't think it is wise to move straight to the 
>>> latest VM
>>> when in the main documentation we suggest to use a 2019 edition.
>>> But, if you say it is better to move to current i will follow.
>>>
>>> I can perform Jerald test, maybe not immediately, say tomorrow morning,
>>> this evening i have a birthday party, off limits ;)
>> I think Juan did a nice Job when testing, there is no immediate
>> need for this tedious test procedure. Thanks for your willingness,
>> as I pointed I should have known better.
>>
>> Tanti auguri!
>>>
>>> bye
>>> Nicola
>>>
>>>
>>>
>>>
>>> On 8/20/21 6:23 PM, Juan Vuletich wrote:
>>>> On 8/20/2021 1:17 PM, Juan Vuletich via Cuis-dev wrote:
>>>>> On 8/20/2021 12:15 PM, Gerald Klix via Cuis-dev wrote:
>>>>>> On 8/20/21 3:24 PM, Nicola Mingotti via Cuis-dev wrote:
>>>>>>>
>>>>>>> I am very sorry to bring bad news.
>>>>>>>
>>>>>>> The mouse wheel does not work anymore properly.
>>>>>>> (Linux debian 11 Stable. Running inside a VMware Fusion in a 
>>>>>>> Macbook just updated )
>>>>>>>
>>>>>>> I test inside a browser list.
>>>>>>>
>>>>>>> If i run the base image it works. If i load all the latest 
>>>>>>> changesets it does not work.
>>>>>>> It scrolls only upward.
>>>>>>>
>>>>>>> Bye
>>>>>>> Nicola
>>>>>>>
>>>>>>
>>>>>> Hi Nicola,
>>>>>>
>>>>>> sorry for my delayed reaction. Just came back to my computer.
>>>>>>
>>>>>> As an immediate workaround do `Smalltalk sendMouseWheelEvents: 
>>>>>> false`.
>>>>>> This should restore the old behavior. This state is saved
>>>>>> with the image.
>>>>>>
>>>>>> If you can afford some time, I would like you to do some testing:
>>>>>>
>>>>>> 1. Clear your Transcript
>>>>>> 2. Do `Smalltalk sendMouseWheelEvents: true`
>>>>>> 3. Do `Sensor test`.
>>>>>> 4. Do some scrolling.
>>>>>> 5. *Press x, to exit this test-method*
>>>>>> 6. Activate the Transcript's pop-up menu and select
>>>>>>    'Workspace with Contents'
>>>>>> 7. Copy the Workspace's contents to an E-Mail
>>>>>> 8. Do `Smalltalk sendMouseWheelEvents: false`
>>>>>> 9. Repeat steps 3 to 7
>>>>>>
>>>>>>
>>>>>> Send the E-Mail to the list.
>>>>>> Hopefully this will give us some clues about
>>>>>> the problem.
>>>>>>
>>>>>>
>>>>>> Best Regards,
>>>>>>
>>>>>> Gerald
>>>>>>
>>>>>
>>>>> Just did some testing in Ubuntu, also in VMWare Fusion in a Macbook.
>>>>>
>>>>> Running with the "Cuis recommended" VM (as per 
>>>>> https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev/blob/master/Documentation/GettingStarted.md 
>>>>> ), I see the same behavior as Nicola.
>>>>>
>>>>> The good news is that with Gerald's VectorGraphics VM, available at 
>>>>> https://www.dropbox.com/sh/rhkt4ayq24t2xbf/AACDb3mrjMUDB8Mptd-Bi6Zsa?dl=0 
>>>>> , it runs ok. Same with latest build from OpenSmalltalk: 
>>>>> https://github.com/OpenSmalltalk/opensmalltalk-vm/releases/tag/latest-build 
>>>>> .
>>>>>
>>>>> So, it seems it is a bug in the Linux X64 VM, that has already been 
>>>>> fixed.
>>>>>
>>>>> Thanks,
>>>>>
>>>>
>>>> Latest OpenSmalltalk release also works OK:
>>>>
>>>> https://github.com/OpenSmalltalk/opensmalltalk-vm/releases/tag/202003021730 
>>>>
>>>>
>>>
>>
>>  workaround
> 


More information about the Cuis-dev mailing list