SSENSE/vue-carousel

Bug: pageChange event gives NaN sometimes with mouse drag

Open

#408 opened on Mar 26, 2019

View on GitHub
 (2 comments) (0 reactions) (0 assignees)JavaScript (1,705 stars) (513 forks)batch import
buggood first issuehelp wanted

Description

Bug Report

Current Behavior On mouse drag on the last slide, sometimes pageChange event gives NaN while remaining on the same slide where mouse was dragged upon and after that carousel becomes non-operational on mouse drag(slides do not move at all).

Did not face this issue with custom navigation buttons however.

Input Code and steps to reproduce Attaching screenshot of console log, where pageChange event handler logs the page number.

Screen Shot 2019-03-26 at 6 51 42 PM

Expected behavior/code pageChange event shouldn't be triggered, if there is no slide change at all.

Babel Configuration (.babelrc, package.json, cli command)

Contributor guide