Revision history [back]

click to hide/show revision 1
initial version

asked 2013-12-02 12:34:15 +0800

techsavvy gravatar image techsavvy

ZUL a double click counted as 3 events

Hi,

I am adding event listeners on a caption for single and double clicks.

Caption caption = new Caption();

caption.addEventListener("onClick", new EventListener() { @Override public void onEvent(Event e) throws Exception { <----Some code----> });

caption.addEventListener("onDoubleClick", new EventListener() { @Override public void onEvent(Event e) throws Exception { <----Some code----> });

I want to do something on a single click and some other thing on double click. But the issue is that double click fires 2 single event followed by a double click event.

zul doesn't differentiates between a single and a double click.

How could I resolve this issue? or what is the alternative to this? Is it a bug? I am using version 6.5.2

Thanks..

Vishal Upadhyay

ZUL a double click counted as 3 events

Hi,

I am adding event listeners on a caption for single and double clicks.

Caption caption = new Caption();

caption.addEventListener("onClick", new EventListener() { @Override public void onEvent(Event e) throws Exception { <----Some code----> });

caption.addEventListener("onDoubleClick", new EventListener() { @Override public void onEvent(Event e) throws Exception { <----Some code----> });

I want to do something on a single click and some other thing on double click. But the issue is that double click fires 2 single event followed by and then a double click event.

zul doesn't differentiates between a single and a double click.

How could I resolve this issue? or what is the alternative to this? Is it a bug? I am using version 6.5.2

Thanks..

Vishal Upadhyay

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More