We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b18491 commit ff7a626Copy full SHA for ff7a626
src/Flicking.ts
@@ -1739,7 +1739,7 @@ class Flicking extends Component<FlickingEvents> {
1739
if (!defaultPanel) return;
1740
1741
const nearestAnchor = camera.findNearestAnchor(defaultPanel.position);
1742
- const initialPanel = (nearestAnchor && defaultPanel.index !== nearestAnchor.panel.index) ? nearestAnchor.panel : defaultPanel;
+ const initialPanel = (nearestAnchor && defaultPanel.position !== nearestAnchor.panel.position && defaultPanel.index !== nearestAnchor.panel.index) ? nearestAnchor.panel : defaultPanel;
1743
control.setActive(initialPanel, null, false);
1744
1745
if (!nearestAnchor) {
0 commit comments