Giter VIP home page Giter VIP logo

ikeyboardscroll4's Introduction

iKeyboardScroll4 v0.0.1

[解决什么问题]

iScroll4下,当表单元素聚焦且键盘出现时,可能会出现iScroll区域滚动异常问题。而且当前聚焦的表单元素可能不出现在可视区域内,影响用户体验。

[注意]

本方案基于Zepto.js及Sea.js构建,使用时需注意 http://www.zawaliang.com/2013/10/443.html

[使用]

var Keyboard = require('iKeyboardScroll4');

// 为元素添加监控,适用于新增的元素
1) Keyboard.watch(selector);

// 键盘显隐时
2) Keyboard.onchange(display, activeElement);

// 传入iScroll实例,自动处理refresh以及聚焦元素的位置问题
3) Keyboard.fixIScroll4Onchange(iScrollInstance, offset);

ikeyboardscroll4's People

Contributors

zawaliang avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.