simple-scroll-snap icon indicating copy to clipboard operation
simple-scroll-snap copied to clipboard

onPanelCentered: should it be called right after initialization?

Open yyphan opened this issue 1 year ago • 0 comments

Thank you for creating this tool, it's very helpful and robust.

Just wondering this cos it seems natural to me that when the panels are first set up and one of the panel is centered, the onPanelCentered() callback would be fired. I don't think that is the case right now as both SelectedPanel and CenteredPanel are set to StartingPanel in Setup(), so in SnapToPanel() onPanelCentered() is not fired.

yyphan avatar Mar 01 '24 06:03 yyphan