Skip to content

Commit

Permalink
fix(events): keyboard push based on transformY (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-rr committed May 13, 2023
1 parent f23568b commit e2108e5
Show file tree
Hide file tree
Showing 14 changed files with 22 additions and 22 deletions.
4 changes: 2 additions & 2 deletions dist/core/index.js

Large diffs are not rendered by default.

6 changes: 3 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: May 9, 2023
* Released on: May 13, 2023
*/

/******************************************************************************
Expand Down Expand Up @@ -593,8 +593,8 @@ class Events {
return;
}
this.keyboardVisible = true;
// calculate distances
const currentHeight = this.settings.breaks[this.breakpoints.prevBreakpoint].height;
// calculate distances based on transformY
let currentHeight = (this.instance.getPanelTransformY() - this.instance.screen_height) * -1;
const inputEl = document.activeElement;
const inputElBottomBound = inputEl.getBoundingClientRect().bottom;
const inputSpaceBelow = this.instance.screen_height - inputElBottomBound - this.inputBottomOffset;
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.

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

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.

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

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

Loading

0 comments on commit e2108e5

Please sign in to comment.