Test breaking mouse-wheel scrolling (was: Re: Re: Test failures in trunk)

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

Test breaking mouse-wheel scrolling (was: Re: Re: Test failures in trunk)

Igor Stasenko
Levente, any idea how to fix that?
I hate downloading/migrating to new image because of that.
And its really annoying to see a blinking panes instead of scrolling,
because i'm using it a lot.

2009/11/13 Levente Uzonyi <[hidden email]>:

> On Fri, 13 Nov 2009, Levente Uzonyi wrote:
>
>> On Fri, 13 Nov 2009, Igor Stasenko wrote:
>>
>>> + with latest update i found that scrolling using mouse wheel no
>>> longer working in system browser window, not in lists nor in code
>>> pane.
>>>
>>
>> It works for me.
>
> I found that it breaks after running LocaleTest >> #testLocaleChanged.
>
> Levente
>
>>
>> Levente
>>
>>
>
>



--
Best regards,
Igor Stasenko AKA sig.

Reply | Threaded
Open this post in threaded view
|

Re: Test breaking mouse-wheel scrolling (was: Re: Re: Test failures in trunk)

Levente Uzonyi-2
On Tue, 17 Nov 2009, Igor Stasenko wrote:

> Levente, any idea how to fix that?
> I hate downloading/migrating to new image because of that.
> And its really annoying to see a blinking panes instead of scrolling,
> because i'm using it a lot.

Finally I could track it down. The scrolling breaks if the locale is
changed to ja (I don't know why, I didn't bother with it) via Locale
switchToID: (LocaleID isoLanguage: 'ja'). Changing it back to en would fix
the scrolling (that's what the test is trying to do), but an error occurs
while changing the locale.

The locale changing fails because flaps cannot be recreated properly,
because the tools flap tries to create a preference panel with Preferences
preferencesControlPanel (because that's in Flaps >>
#defaultQuadsDefiningToolsFlap).

Preferences >> #preferencesControlPanel has been removed from the image,
but Preferences has #doesNotUnderstand: on the class side, so it will just
return false. And the flap building mechanism cannot create a thumbnail
from false.

Anyway I uploaded my fix to the inbox as MorphicExtras-ul.59. Someone
with better knowledge of flaps should have a look around there, it seems
to me that there's plenty of room for cleanup.

Cheers,
Levente

Reply | Threaded
Open this post in threaded view
|

Re: Test breaking mouse-wheel scrolling (was: Re: Re: Test failures in trunk)

Igor Stasenko
2009/11/18 Levente Uzonyi <[hidden email]>:

> On Tue, 17 Nov 2009, Igor Stasenko wrote:
>
>> Levente, any idea how to fix that?
>> I hate downloading/migrating to new image because of that.
>> And its really annoying to see a blinking panes instead of scrolling,
>> because i'm using it a lot.
>
> Finally I could track it down. The scrolling breaks if the locale is changed
> to ja (I don't know why, I didn't bother with it) via Locale switchToID:
> (LocaleID isoLanguage: 'ja'). Changing it back to en would fix the scrolling
> (that's what the test is trying to do), but an error occurs while changing
> the locale.
>
> The locale changing fails because flaps cannot be recreated properly,
> because the tools flap tries to create a preference panel with Preferences
> preferencesControlPanel (because that's in Flaps >>
> #defaultQuadsDefiningToolsFlap).
>
> Preferences >> #preferencesControlPanel has been removed from the image, but
> Preferences has #doesNotUnderstand: on the class side, so it will just
> return false. And the flap building mechanism cannot create a thumbnail from
> false.
>
> Anyway I uploaded my fix to the inbox as MorphicExtras-ul.59. Someone with
> better knowledge of flaps should have a look around there, it seems to me
> that there's plenty of room for cleanup.
>

It does not fixes the problem for me :(
I wonder, why mouse scroll behavior depends on flaps or locale..

> Cheers,
> Levente
>
>



--
Best regards,
Igor Stasenko AKA sig.

Reply | Threaded
Open this post in threaded view
|

Re: Test breaking mouse-wheel scrolling (was: Re: Re: Test failures in trunk)

Andreas.Raab
Igor Stasenko wrote:
> It does not fixes the problem for me :(
> I wonder, why mouse scroll behavior depends on flaps or locale..

Most likely because scroll events are delivered as Ctrl-UpArrow and
Ctrl-DownArrow events and there is a chance that the input converters
muck with that. I had a quick look but I couldn't find much. Some things
you could try is:
* see if typing Ctrl-UpArrow and Ctrl-DownArrow scrolls text
* check what running "Sensor kbdTest" shows when you operate the scroll
wheel
* check the keyboard converter in World primaryHand to ensure it's correct.

Cheers,
   - Andreas

Reply | Threaded
Open this post in threaded view
|

Re: Re: Test breaking mouse-wheel scrolling (was: Re: Re: Test failures in trunk)

Igor Stasenko
2009/11/18 Andreas Raab <[hidden email]>:

> Igor Stasenko wrote:
>>
>> It does not fixes the problem for me :(
>> I wonder, why mouse scroll behavior depends on flaps or locale..
>
> Most likely because scroll events are delivered as Ctrl-UpArrow and
> Ctrl-DownArrow events and there is a chance that the input converters muck
> with that. I had a quick look but I couldn't find much. Some things you
> could try is:
> * see if typing Ctrl-UpArrow and Ctrl-DownArrow scrolls text

works fine.

> * check what running "Sensor kbdTest" shows when you operate the scroll
> wheel

shows
30 16
31 16
in display corner, when i scrolling da wheel

> * check the keyboard converter in World primaryHand to ensure it's correct.
>
it points to an UTF32JPInputInterpreter, which is wrong..

I found how to revert back to EN locale:
Locale currentPlatform: (Locale isoLanguage: 'en')

after that, mouse scroll starts working again.

But back to the question:
 - why it not works in japanese locale? Is japanese guys not using
mouse scroll, or their goverment prohibits from use a mouse scroll
wheel? ;)

> Cheers,
>  - Andreas


--
Best regards,
Igor Stasenko AKA sig.

Reply | Threaded
Open this post in threaded view
|

Re: Re: Test breaking mouse-wheel scrolling (was: Re: Re: Test failures in trunk)

Igor Stasenko
Btw, what about altering VM to generate a true mouse scroll events, so
it wont be dependent from keyboard events anymore?


2009/11/18 Igor Stasenko <[hidden email]>:

> 2009/11/18 Andreas Raab <[hidden email]>:
>> Igor Stasenko wrote:
>>>
>>> It does not fixes the problem for me :(
>>> I wonder, why mouse scroll behavior depends on flaps or locale..
>>
>> Most likely because scroll events are delivered as Ctrl-UpArrow and
>> Ctrl-DownArrow events and there is a chance that the input converters muck
>> with that. I had a quick look but I couldn't find much. Some things you
>> could try is:
>> * see if typing Ctrl-UpArrow and Ctrl-DownArrow scrolls text
>
> works fine.
>
>> * check what running "Sensor kbdTest" shows when you operate the scroll
>> wheel
>
> shows
> 30 16
> 31 16
> in display corner, when i scrolling da wheel
>
>> * check the keyboard converter in World primaryHand to ensure it's correct.
>>
> it points to an UTF32JPInputInterpreter, which is wrong..
>
> I found how to revert back to EN locale:
> Locale currentPlatform: (Locale isoLanguage: 'en')
>
> after that, mouse scroll starts working again.
>
> But back to the question:
>  - why it not works in japanese locale? Is japanese guys not using
> mouse scroll, or their goverment prohibits from use a mouse scroll
> wheel? ;)
>
>> Cheers,
>>  - Andreas
>
>
> --
> Best regards,
> Igor Stasenko AKA sig.
>



--
Best regards,
Igor Stasenko AKA sig.

Reply | Threaded
Open this post in threaded view
|

Re: [Vm-dev] Re: Re: Test breaking mouse-wheel scrolling (was: Re: Re: Test failures in trunk)

Bert Freudenberg
On 18.11.2009, at 09:15, Igor Stasenko wrote:
>
>
> Btw, what about altering VM to generate a true mouse scroll events, so
> it wont be dependent from keyboard events anymore?

+1

- Bert -



Reply | Threaded
Open this post in threaded view
|

Re: Test breaking mouse-wheel scrolling (was: Re: Re: Test failures in trunk)

Levente Uzonyi-2
In reply to this post by Igor Stasenko
On Wed, 18 Nov 2009, Igor Stasenko wrote:

>
> It does not fixes the problem for me :(
> I wonder, why mouse scroll behavior depends on flaps or locale..
>

Does LocaleTest >> #testLocaleChanged pass for you? If not, see where it
fails. One issue I had is that SMLoader new raised an error, because I had
a broken map file. After deleting the sm directory everthing was fine.

Cheers,
Levente

>
> --
> Best regards,
> Igor Stasenko AKA sig.
>
>