Giter Site home page Giter Site logo

pinchzoom's Introduction

PinchZoom

PinchZoom-a custom ExtJS component. PinchZoom-一个ExtJS自定义组件,用作移动端Pinch手势对组件的缩放,同时也可以组件的移动,解决了ExtJS多焦点touch,组件会再多个焦点之间来回摆动的BUG。支持chorme,IE8+,FireFox,Safari浏览器。

在线deom地址

在线demo

Resource

  • HanmmerJS- 2.0.6
  • ExtJS-6.0+

Examples code

// get a container
var container = Ext.getCmp('panel');
// create pinchzoom component and show
var component = Ext.create({
	xtype: 'pinchzoom',
    parentDom: container,
    x: 100,
    y: 100,
    width: 200,
    height: 200
}).show();

Note: pinchzoom css style

  • position:absolute

Preview photo

Component lifecycle

License

The MIT License

pinchzoom's People

Contributors

todayqq avatar

Stargazers

 avatar

Watchers

 avatar  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.