Are you long clicking on the browser component or somewhere else? It's 
unclear from the question.  Do you have a screenshot of the place you're 
clicking on?

On Sunday, February 21, 2021 at 1:17:56 PM UTC+2 P5music wrote:

> P5music
> 12:16 (ora) 
> a CodenameOne Discussions
> I am testing my CodenameApp on a real Android device.
> The main screen has a table layout with a container on the left.
> The container has a container inside, that has a BrowserComponent inside 
> in BorderLayout.CENTER.
> The issue is not about layout.
>
> I have some callbacks for the BC that on the simulator handle mouseup/down 
> on the iFrames in the HTML.
> That callback work also for handing long-press on the same HTML elements.
> Everything is fine. If I add a LongPressListener it gets not called but it 
> is not needed at all.
>
> When using the app on the real Android device the clicks are handled as in 
> the simulator
> while
> the long press is not.
> I debugged and it seems that the events are not fired at all.
> I mean,
> a click is mousedown and mouseup within a short time range.
> a longpress is the same where the mouseup event is after 500ms. The app 
> uses a timer.
>
> But the initial mousedown event itself is not called, and also the 
> LongPressListener is not called.
>
> So what is happening? This is very important because the long-press is for 
> displaying a pop-up  menu. But only clicks work.
> Thanks in advance
>

-- 
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/8b04410e-04a4-4937-bca0-33d7889b1817n%40googlegroups.com.

Reply via email to