Skip to content

Commit

Permalink
fix: remove unsupported method (#188)
Browse files Browse the repository at this point in the history
* fix: remove unsupported method
* fix: fix exports method

Close #187 
Close #195
  • Loading branch information
daybrush committed May 2, 2019
1 parent 2c849ea commit 2819fa4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Flicking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ class Flicking extends Component {
if (options.circular && looped) {
// Reached at max/min range of axes
const scrollAreaSize = viewport.getScrollAreaSize();
cameraChange = -Math.sign(cameraChange) * (scrollAreaSize - Math.abs(cameraChange));
cameraChange = (cameraChange > 0 ? -1 : 1) * (scrollAreaSize - Math.abs(cameraChange));
}

const currentDirection = cameraChange === 0
Expand Down
4 changes: 1 addition & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import Flicking from "./Flicking";

export * from "./types";
export {
Flicking as default
};
export default Flicking;

0 comments on commit 2819fa4

Please sign in to comment.