mpetroff / pannellum

Pannellum is a lightweight, free, and open source panorama viewer for the web.
https://pannellum.org/
MIT License
4.16k stars 712 forks source link

Use matrix instead of transform #1074

Open dbwodlf3 opened 2 years ago

dbwodlf3 commented 2 years ago

Hotspot is pointed by transform translate(x, y) (in html) It works but i think just use matrix is more better.

dbwodlf3 commented 2 years ago

function renderHotSpot(hs) {

mpetroff commented 2 years ago

Care to elaborate why you think using matrix would be better? Only a translation is being done, so the matrix transform's additional scale and skew terms wouldn't be used.