A touch friendly draggable and/or resizable container.
bower i -S jifalops/drag-resize # Polymer 2.0 class based
bower i -S jifalops/drag-resize#^0.2 # Polymer 2.0 hybrid (1.x compatible)
- Set which directions are draggable and which edges are resizable. All possibilities are enabled by default.
- Optional: set edge/corner borders, mouse cursors, corner gradient color.
- Optional: listen for
on-resize
oron-drag
events.
<drag-resize drag="left right" resize="bottom right">
<div style="height:100px; width:100px; background-color:lightblue;"></div>
</drag-resize>
Full demo: webcomponents.org | github.
API: webcomponents.org
- Fork it on Github.
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request