title: Vaadin double click and browser behavior
body: <p>I'm developing a Vaadin application (with version 6.8.10) with a <strong>tree component</strong>. We need to react to item's double clicks. But in our cross-browser tests we founded that the <strong>double-click</strong> doesn't work always in <strong>Firefox</strong> (some times works).</p>
  <p>Here our eventListener code:</p>
  <pre><code> @Override
    public void itemClick(ItemClickEvent event) {
    *  if (event.isDoubleClick()) {  // Breakpoint line
         // our action
      }
    } 
  </code></pre>
  <p>Debugging in Eclipse we received following values (in each browser after a double click Vaadin receives 2 events)</p>
  <p><strong>Chrome</strong></p>
  <p>1° event received</p>
  <blockquote>
  <p>event.getButton()     ==&gt;  1</p>
  <p>event.isDoubleClick() ==&gt;  false</p>
  <p>event.getButtonName() ==&gt;  left</p>
  </blockquote>
  <p>2° event received</p>
  <blockquote>
  <p>event.getButton()     ==&gt;  1</p>
  <p>event.isDoubleClick() ==&gt;  <strong>true</strong></p>
  <p>event.getButtonName() ==&gt;  left</p>
  </blockquote>
  <p><strong>Firefox</strong></p>
  <p>1° event received</p>
  <blockquote>
  <p>event.getButton()     ==&gt;  1</p>
  <p>event.isDoubleClick() ==&gt;  false</p>
  <p>event.getButtonName() ==&gt;  left</p>
  </blockquote>
  <p>2° event received</p>
  <blockquote>
  <p>event.getButton()     ==&gt;  1</p>
  <p>event.isDoubleClick() ==&gt;  <strong>false</strong></p>
  <p>event.getButtonName() ==&gt;  left</p>
  </blockquote>
  <p><strong>Resuming, in Firefox my double-click are detected as 2 single clicks!!!!</strong></p>
  <p>Are you experienced something similar? Do you have a workaround?</p>
  <p>Thanks!</p>