Touch-action

Hey ,

I'm thrilled to help you learn JavaScript. Unfortunately, you've landed on a page where you cannot access with your current purchase.

Please upgrade (use this link) access this content.

I'm super eager to help you learn more!

Touch-action

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.

Panning
zooming

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;
}