Skip to content

fs-webcomponents/pannable-mixin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pannable-mixin

Published on webcomponents.org

Web Component mixin that makes elements pannable. By default it will add mouse event listeners to the host element and apply a CSS transform to it whenever it's dragged. You can change the element that the tranform is applied to by calling setPanningElement(). Note that this doesn't change where the mouse event listeners are applied.

You may reset the panning position (i.e. return the element to it's regular position) by calling resetPanning().

About

Web Component mixin that makes elements pannable

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages