When you use Touch or Pointer events, you need to use the touch-action CSS property to support you.
touch-action determines how an elementβs region is manipulated by a touch event. By default, all browsers allow users to pan and zoom on every element.
Thereβs a delay before touchmove (or pointermove) can trigger. If you want to remove this delay, you need to set touch-action to none.
touch-action should only be set on elements that need it.
.element { touch-action: none;}Welcome! Unfortunately, you donβt have access to this lesson. To get access, please purchase the course or enroll in Magical Dev School.
Unlock this lesson