Pannellum: Can I prevent double-click zoom?

Created on 15 Sep 2020  路  2Comments  路  Source: mpetroff/pannellum

Hi Mattew :)

Can I prevent zoom with double-click?
I've tried stopPropagation or preventDefault with mousedown event listener, but it didn't meet my expectations.

There are any solutions?

question

Most helpful comment

You need to set the doubleClickZoom parameter to false. This parameter was undocumented until recently (see #842), which is why it's not in the pannellum.org documentation (which is only updated with new releases).

All 2 comments

You need to set the doubleClickZoom parameter to false. This parameter was undocumented until recently (see #842), which is why it's not in the pannellum.org documentation (which is only updated with new releases).

Thanks :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

truszko1 picture truszko1  路  5Comments

epignosis567 picture epignosis567  路  6Comments

exotfboy picture exotfboy  路  3Comments

valeriodeluca picture valeriodeluca  路  3Comments

afriedle picture afriedle  路  3Comments