It doesn't "know" about the menu. When a touch event occurs we're in the 
native thread and need to decide whether it goes to.a peer or a lightweight.
So we loook through the component hierarchy to see if it's one or the 
other. There's no lightweight in the hierarchy at that stage so the browser 
component grabs the event and the lightweight menu doesn't get it. 
The solution is a special case for the side menu swipe in the native OS 
ports. That's pretty hard to do so I'm not sure when we'll get around to do 
it.

On Saturday, February 6, 2021 at 12:43:46 PM UTC+2 P5music wrote:

> But why does the focus go to the native component, i.e. the 
> BrowserComponent, when the menu is opened?
>
> Il giorno sabato 6 febbraio 2021 alle 06:58:25 UTC+1 Shai Almog ha scritto:
>
>> This is one of the nuances of the z-ordering with components. Please file 
>> an issue with a test case, we'll try to resolve it.
>> It might be a bit difficult as it might require a special case for this.
>>
>> I would suggest disabling the swipe gesture of the menu when using native 
>> widgets.
>>
>> On Friday, February 5, 2021 at 3:49:44 PM UTC+2 P5music wrote:
>>
>>> I would like to inform you about what happens with CodenameApp on 
>>> Android devices
>>> (I do not know about iOS at present time)
>>>
>>> When you open the menu
>>> and then you close it with a gesture from left to right
>>>
>>> the menu disappears: OK
>>> but
>>> also it can happen that 
>>>     if you touch a BrowserComponent in text editing (editable element)
>>>    
>>> the PASTE option appears: NOT OK.
>>>
>>> It seems not to be affecting TextField/TextArea components: OK
>>> but
>>> also it seems that the BrowserComponent gains the focus when opening the 
>>> menu: NOT OK.
>>> Regards
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/e249c94c-d82f-47d6-8621-1ddd283df99bn%40googlegroups.com.

Reply via email to