-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix threshold option not applying snap threshold (#845)
* test: add manual test for vertical flicking * fix: fix threshold option not applying snap threshold --------- Co-authored-by: malangfox <[email protected]>
- Loading branch information
Showing
6 changed files
with
67 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
const flicking = new Flicking("#flicking", { | ||
horizontal: false, | ||
align: "prev", | ||
threshold: 50, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no"> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/es6-promise/dist/es6-promise.auto.js"></script> | ||
<script type="text/javascript" src="../../dist/flicking.pkgd.js"></script> | ||
<script type="text/javascript" src="../../node_modules/@egjs/flicking-plugins/dist/plugins.js"></script> | ||
<link rel="stylesheet" href="./css/index.css"> | ||
<link rel="stylesheet" href="../../dist/flicking.css"> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css"> | ||
<title>Flicking Manual Test</title> | ||
</head> | ||
<body> | ||
<div class="demo-area"> | ||
<div id="flicking" class="flicking-viewport vertical"> | ||
<div class="flicking-camera"> | ||
<div class="flicking-panel has-text-white has-background-danger">1</div> | ||
<div class="flicking-panel has-text-white has-background-primary">2</div> | ||
<div class="flicking-panel has-text-white has-background-warning">3</div> | ||
<div class="flicking-panel has-text-white has-background-black">4</div> | ||
<div class="flicking-panel has-text-white has-background-info">5</div> | ||
<div class="flicking-panel has-text-white has-background-link">6</div> | ||
</div> | ||
</div> | ||
</div> | ||
<script type="text/javascript" src="./js/vertical.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters