SSENSE/vue-carousel

Bug: pageChange event gives NaN sometimes with mouse drag

开放

#408 创建于 2019年3月26日

 (2 条评论) (0 个反应) (0 位负责人)JavaScript (513 个派生)batch import
buggood first issuehelp wanted

仓库指标

星标
 (1,705 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

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)

贡献者指南