hammerjs / hammerjs.github.io

Website
https://hammerjs.github.io
71 stars 582 forks source link

Missing Tap event while testing with Selenium #71

Open Walibu opened 4 years ago

Walibu commented 4 years ago

The following DOM Elements get about every second a click from Selenium tests Between them other actions taking place and the JS engine is quite busy. <div class="taptest" (tap)="onTap($event)"> </div> <div class="clicktest" (click)="onClick($event)"> </div>

public onTap(event: any) { countTaps(); } public onClick(event: any) { countClicks(); }

Out of 1000 clicks:

Just in case somebody else has same or similar problem. Versions used: V8 engine (https://v8.dev/blog/v8-release-49) Chromium v49 (no pointerEvents) Hammerjs 2.0.8 Angular 8.2.14