Skip to content

how to pinch to zoom force on the center #72

@coddingBoy

Description

@coddingBoy

hello. i have the problem that i could not force on the center when i doing zooming. it forces on the bottom of the elem. this is my code.

defaultProps.forEach((val, i) => {
const paris = new ZScroller(this[scroller${i}], {
zooming: true,
minZoom: 1,
onScroll: () => {
const values = paris.scroller.getValues()
zoom = values.zoom
},
})
console.log(paris)
})

are there any params i missed?
thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions