Skip to content

Commit

Permalink
enhance(gestures): upper-than-top gestures unable to move pane by Y f…
Browse files Browse the repository at this point in the history
…or disabled options
  • Loading branch information
roman-rr committed Jun 18, 2023
1 parent 9e3eaaa commit 2f32800
Show file tree
Hide file tree
Showing 14 changed files with 31 additions and 22 deletions.
4 changes: 2 additions & 2 deletions dist/core/index.js

Large diffs are not rendered by default.

9 changes: 6 additions & 3 deletions dist/cupertino-pane.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* Released under the MIT License
*
* Released on: June 18, 2023
* Released on: June 19, 2023
*/

/******************************************************************************
Expand Down Expand Up @@ -709,9 +709,12 @@ class Events {
* Otherwise don't changes
*/
handleTopperLowerPositions(coords) {
// Disallow drag topper than top point
// Disallow drag upper than top point
// And drag bottom when upper than top point
if (!this.settings.upperThanTop
&& (coords.newVal <= this.breakpoints.topper)) {
&& (coords.newVal <= this.breakpoints.topper
|| coords.clientY <= this.breakpoints.topper)) {
this.steps = [];
return this.breakpoints.topper;
}
/**
Expand Down
4 changes: 2 additions & 2 deletions dist/cupertino-pane.esm.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/cupertino-pane.esm.min.js.map

Large diffs are not rendered by default.

9 changes: 6 additions & 3 deletions dist/cupertino-pane.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/cupertino-pane.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/cupertino-pane.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/modules/backdrop.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/modules/fit-height.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/modules/follower.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/modules/horizontal.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2f32800

Please sign in to comment.