# Restricting touches to be used by P5.js and not the browser: possible?

**URL:** <https://discourse.processing.org/t/restricting-touches-to-be-used-by-p5-js-and-not-the-browser-possible/43149>\
**Category:** Coding Questions\
**Created:** [November 5, 2023, 1:07pm UTC](https://discourse.processing.org/t/restricting-touches-to-be-used-by-p5-js-and-not-the-browser-possible/43149 "2023-11-05T13:07:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![amundsen](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/amundsen/32/2497_2.png) [@amundsen](https://discourse.processing.org/u/amundsen)\
**Post date:** [November 5, 2023, 1:07pm UTC](https://discourse.processing.org/t/restricting-touches-to-be-used-by-p5-js-and-not-the-browser-possible/43149/1 "2023-11-05T13:07:44Z")

</div>

Hello,

I want to have a multitouch interaction on a sketch using _touches_. However as soon as I have two or more fingers on the touchscreen the browser interprets the distance between the two first contacts as the zoom function and modifies the display accordingly. Is it possible to deactivate this function whenever the touches are inside the canvas?
