All Questions
Tagged with hammer.js typescript
30
questions
0
votes
2
answers
2k
views
Cannot find type definition file for 'hammerjs'
While trying to run my project ionic cordova run Android it will show error:-
[13:07:43] typescript error
Cannot find type definition file for 'hammerjs'.
TypeError: Cannot read ...
3
votes
0
answers
403
views
How to implement long press (tap & hold) using angular in iphone ,safari
I have tried hammerjs press,pressup events,pointerup,pointerdown events.These works in chrome and android perfectly but not working in iphone and safari.Also tried to use hostlisener event but not ...
0
votes
0
answers
347
views
How to get touch coordinates in hammerjs?
Can anybody tell me how to get touch coordinates in hammerjs?
Following code is giving error:
hammerEvent.on('pan', (ev) => {
console.log('x, y: ', ev.clientX, ev.clientY);
}
1
vote
2
answers
330
views
Functions not running when called through HammerJS
I have a component that shows information for days that are cycled through with functions dayUp() and dayDown(). They both look like the following:
dayUp() {
if (this.dayCount == 7) {
...
0
votes
1
answer
103
views
Long tap doesn't work on Raspberry Pi touchscreen
I'm using HammerJS in an Angular app running in Electron on a Raspberry Pi with a touchscreen. I want my user to be able to tap for as long as they want (especially for old people).
Here is my Angular ...
2
votes
1
answer
3k
views
Hammer_gesture_config import error after updating angular project from 7 to 10
I updated Angular application to v10 and now i get this import error on GestureConfig.
import GestureConfig
Module '"../../node_modules/@angular/material/core"' has no exported member '...
2
votes
1
answer
2k
views
HammerJs Gesture with Angular 9
I have a project with ionic/ anuglar 6 and hammerJs which rocks but I have decided to update to anuglar9.1.6 and ionic 5.0.0.
The problem is that my gesture doesn't work anymore ! my press and pressup ...
0
votes
1
answer
846
views
Angular 8: HammerJs swipeRight and swipeLeft not working inside overflow:auto
I'm making an application that run on a mobile phone. I would like to be able to use the swipe events inside a scrollable container. Right now, if I use (swipeRight)="" or (swipeLeft)="" the events ...
0
votes
1
answer
246
views
Hammerjs tap and swipedown
How to implement drag-down to trigger an event in angular material using hammerjs?
Like below image on gray bar just above facebook button the dragdown event needs to be done.
0
votes
1
answer
524
views
panstart and panmove is not working on Android devices in Firefox browser
I am working on the Angular7 project and I am using hammerjs version 2.0.1. I have a map which I need to pan on mobile devices. I checked on android devices. it works fine on chrome browser but on ...
2
votes
1
answer
747
views
Performing a fast swipe causes button to not react to first click
I am building an angular application, with a responsive navigation using the angular navbar. To let the navigation feel really smooth i use hammer to enable swiping right to show, and swiping left to ...
9
votes
5
answers
10k
views
How to fix ERROR TypeError: Class constructor HammerGestureConfig cannot be invoked without 'new'
I have a problem when I add the ngx-gallery.
When inspect an error appears
ERROR Type Error: The class constructor HammerGestureConfig cannot be invoked without 'new'
I have added hammerjs in app....
-3
votes
1
answer
298
views
Multi Touch is Not workig in Chrome
i need to run a function if two div's pressed/tapped simultaneously.i tired below code but its executing event one after another.
i got one sample code this is working fine in mobile device.but its ...
0
votes
0
answers
369
views
How to disable hammer.js mouse events on angular2?
I am building a angular website. using hammer.js for mobile gestures animations.
when browsing the website form PC/laptop I don't want the mouse to be able to trigger swipe events.
I know that hammer....
4
votes
1
answer
3k
views
ipad double tap and long press events in angular 7
How can we implement double tap and long press events in angular 7 in a proper way for ipad.
I have custom implementation for the above functionality using directives. But the problem is that it's ...