# Increase sensitivity when pinch zooming. Now it is way too slow

**URL:** <https://community.penpot.app/t/increase-sensitivity-when-pinch-zooming-now-it-is-way-too-slow/4217>\
**Category:** Help us improve Penpot\
**Created:** [December 25, 2023, 9:44am UTC](https://community.penpot.app/t/increase-sensitivity-when-pinch-zooming-now-it-is-way-too-slow/4217 "2023-12-25T09:44:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![skorphil](https://dub1.discourse-cdn.com/flex017/user_avatar/community.penpot.app/skorphil/32/4153_2.png) [@skorphil](https://community.penpot.app/u/skorphil)\
**Post date:** [December 25, 2023, 9:44am UTC](https://community.penpot.app/t/increase-sensitivity-when-pinch-zooming-now-it-is-way-too-slow/4217/1 "2023-12-25T09:44:16Z")

</div>

Hi, zooming is something i use veeeery often.  
Penpot has very slow and annoying zoom (i’m using pinch gesture on macbook trackpad)

My maximum `deltaY` for a single zoom-in pinch gesture is 92-96.

| App | Zoom change per single pinch | Change percentage |
| --- | --- | --- |
| Figma | 50% → 181% | 262 % |
| Penpot | 46% → 79% | 72% |

![penpot](https://europe1.discourse-cdn.com/flex017/uploads/penpot/original/2X/5/575d37c1adcfc27a1be83ed1467dcb7314c1488d.gif)  
 ![figma](https://europe1.discourse-cdn.com/flex017/uploads/penpot/original/2X/3/3a0206f78ec9965da2641f7bc4d21297b5e0a51a.gif)

```js
 el.addEventListener("wheel", wheelHandler)
 
 let distance = 0 
 function wheelHandler (ev) {
 if (event.ctrlKey) {
 	console.log("Scale", ev.deltaY)
 	distance += ev.deltaY
        document.getElementById("result").textContent=`Total Event.deltaY = ${distance}`;
 }

```

---

<div class="post-metadata">

**Author:** ![skorphil](https://dub1.discourse-cdn.com/flex017/user_avatar/community.penpot.app/skorphil/32/4153_2.png) [@skorphil](https://community.penpot.app/u/skorphil)\
**Post date:** [December 26, 2023, 1:15pm UTC](https://community.penpot.app/t/increase-sensitivity-when-pinch-zooming-now-it-is-way-too-slow/4217/2 "2023-12-26T13:15:07Z")

</div>

I made a script to increase the speed of _pinch-zoom_ and _pan_. Could be used as a workaround:

```js
// Script to ajust trackpad speed for zoom(pinch gesture) and pan(2 finger pan) 
// in penpot. Primarily for apple trackpads. 

/* HOW TO USE */
// 1. Install browser extesion for injecting custom js. 
// For example: https://chromewebstore.google.com/detail/code-injector/edkcmfocepnifkbnbkmlcmegedeikdeb
// 2. inject this script to https://design.penpot.app using browser extension

/* SETTINGS */
// Change multipliers if needed
const panMultiplier = 1.3; // recommend 1.3
const zoomMultiplier = 2.2; // recommend 2.2

/* SCRIPT */
const app = document.getElementById("app");
document.body.addEventListener("wheel", simulateWheel);

function simulateWheel(ev) {
  if (ev.srcElement !== app) {
    const simEvent = new WheelEvent("wheel", {
      bubbles: ev.bubbles,
      cancelable: ev.cancelable,
      composed: ev.composed,
      ctrlKey: ev.ctrlKey,
      altKey: ev.altKey,
      shiftKey: ev.shiftKey,
      clientX: ev.clientX,
      clientY: ev.clientY,
      deltaX: ev.ctrlKey
        ? ev.deltaX * zoomMultiplier
        : ev.deltaX * panMultiplier,
      deltaY: ev.ctrlKey
        ? ev.deltaY * zoomMultiplier
        : ev.deltaY * panMultiplier,
    });
    Object.defineProperty(simEvent, "target", { value: ev.target });
    app.dispatchEvent(simEvent);
  }
}

```

Well, now zoom and pan working as needed

---

<div class="post-metadata">

**Author:** ![yousofi](https://dub1.discourse-cdn.com/flex017/user_avatar/community.penpot.app/yousofi/32/4336_2.png) [@yousofi](https://community.penpot.app/u/yousofi)\
**Post date:** [January 29, 2024, 1:33pm UTC](https://community.penpot.app/t/increase-sensitivity-when-pinch-zooming-now-it-is-way-too-slow/4217/3 "2024-01-29T13:33:14Z")

</div>

jeez, thank you! this type of stuff can really make or break a product as people get used to a certain feel. especially given this is likely the most used interaction. moving objects is a little slow still compared to figma

---

<div class="post-metadata">

**Author:** ![skorphil](https://dub1.discourse-cdn.com/flex017/user_avatar/community.penpot.app/skorphil/32/4153_2.png) [@skorphil](https://community.penpot.app/u/skorphil)\
**Post date:** [January 29, 2024, 3:20pm UTC](https://community.penpot.app/t/increase-sensitivity-when-pinch-zooming-now-it-is-way-too-slow/4217/4 "2024-01-29T15:20:56Z")

</div>

You can increase multiplicators in the provided script for tailored experience.  
But as for moving objects - I believe it is 1:1 to your pointer speed and in figma also. Probably that is just because a penpot is more laggy than figma, so it feels like slower

Is moving objects in figma faster than your usual pointer speed?

---

<div class="post-metadata">

**Author:** ![yousofi](https://dub1.discourse-cdn.com/flex017/user_avatar/community.penpot.app/yousofi/32/4336_2.png) [@yousofi](https://community.penpot.app/u/yousofi)\
**Post date:** [January 30, 2024, 1:17pm UTC](https://community.penpot.app/t/increase-sensitivity-when-pinch-zooming-now-it-is-way-too-slow/4217/5 "2024-01-30T13:17:57Z")

</div>

Actually, you’re right regarding the speed, it does match the pointer. It almost feels like Figma has some kind of smoothing like v-sync that makes it feel a bit smoother.

Thanks for the fix regarding the panning speed though!
