summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpliablepixels <pliablepixels@gmail.com>2016-05-17 14:48:20 -0400
committerpliablepixels <pliablepixels@gmail.com>2016-05-17 14:48:20 -0400
commitccc2e6c1846bf0cf7bc1d7ab1810235ba92b4cd2 (patch)
tree2176eb7d4be8fc135614a15d877fc94164cd7ce2
parent7b2e633b9619909f0bd43007ee152a1e4154ef0a (diff)
#251 - fix keyboard jump
Former-commit-id: f6a447ea4e1e8d86e2a6d000147d2d999957ee77
-rw-r--r--www/index.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/www/index.html b/www/index.html
index 3540073f..65d8450e 100644
--- a/www/index.html
+++ b/www/index.html
@@ -295,7 +295,19 @@
});
</script>
+ <!-- keyboard input jump fix
+ https://forum.ionicframework.com/t/ionic-keyboard-scroll-issue-ios/34420/2?u=pliablepixels
+ -->
+ <script>
+ window.addEventListener('native.keyboardshow', keyboardShowHandler);
+
+ function keyboardShowHandler(e) {
+ setTimeout(function () {
+ $('html, body').animate({ scrollTop: 0 }, 1000);
+ }, 0);
+ }
+</script>