-
FEATURED COMPONENTS
First time here? Check out the FAQ!
1 | initial version | |
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
2 | No.2 Revision |
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