84 Commits

Author SHA1 Message Date
beefchimi
34d1bc3cbf setup prettier and fix all files 2018-03-22 21:25:48 -04:00
beefchimi
2bd055c8ad manually update library node modules 2018-03-19 21:12:24 -04:00
Noah Overcash
62d58da2a1
Merge branch 'master' into patch-1 2018-03-02 23:10:15 -05:00
Noah Overcash
bcf801914a
remove double space
~~even though you know it belongs there~~
2018-03-02 23:09:04 -05:00
Noah Overcash
4cc4bfb60e
Change to proposed version by @tsov, remove newline 2018-03-02 19:06:45 -05:00
Max Hoffmann
3049e1b3e7
v1.0.0-beta.5 2018-03-02 16:51:32 -05:00
Max Hoffmann
91b2488ed2
Rework of testing setup 2018-03-02 16:51:31 -05:00
Max Hoffmann
0ff0e98aad
Introduces Emitter for draggable 2018-03-02 16:51:31 -05:00
Max Hoffmann
540284c08b
Fixes overContainer reference in drag:out:container event 2018-03-02 16:51:31 -05:00
randym
70a388938d
fix(dragstart): cleanup DOM modifications when drag:start is canceled 2018-03-02 16:51:31 -05:00
Max Hoffmann
6efc520efb
Fixes mirror offset for touch devices on scroll 2018-03-02 16:51:30 -05:00
Max Hoffmann
65ccc3a5c1
Fixed scrollable document scrolling when inside container 2018-03-02 16:51:30 -05:00
beefchimi
a19e7954ae
Rename AutoScroll to Scrollable 2018-03-02 16:51:29 -05:00
Max Hoffmann
5bb144499e
Adds option for defining custom scrollable elements 2018-03-02 16:51:29 -05:00
Max Hoffmann
d60152f36f
Fixes mirror position and auto scroll on touch 2018-03-02 16:51:29 -05:00
Max Hoffmann
b351e8a9f4
Add cursor offset options to position mirror relative to cursor for Mirror plugin 2018-03-02 16:51:29 -05:00
Max Hoffmann
a300e254e5
Improve constrainDimensions option for Mirror plugin 2018-03-02 16:51:29 -05:00
Max Hoffmann
7845a9f8a9
Announce plugin for screen readers 2018-03-02 16:51:29 -05:00
randym
41381691ac
test(dragging): dragging false on drag:start cancel 2018-03-02 16:51:28 -05:00
Max Hoffmann
26e8f2776b
Fixes links in draggable plugins README 2018-03-02 16:51:28 -05:00
Max Hoffmann
b486aaff3d
Added README reference to draggable events 2018-03-02 16:51:28 -05:00
Max Hoffmann
3f8154cbe2
Change export statements 2018-03-02 16:51:27 -05:00
Max Hoffmann
c4bfb5656a
Adds JSDocs for Mirror 2018-03-02 16:51:27 -05:00
Max Hoffmann
bbeb86d60f
JSDoc extends from AbstractPlugin for AutoScroll and Accessibility 2018-03-02 16:51:27 -05:00
Max Hoffmann
b0d0331cc7
Export Sensor events 2018-03-02 16:51:26 -05:00
Max Hoffmann
0a5605b1bd
Correct params in JSDoc for AutoScroll 2018-03-02 16:51:26 -05:00
Max Hoffmann
3d0237ad5d
Draggable README corrections 2018-03-02 16:51:26 -05:00
Noah Overcash
953cbb8859
Update Draggable readme, resolve ambiguity in appendTo
This goes along with Shopify/Draggable#158 in order to help others who may have had the same issue.  This adds a sentence to the description in order to clarify for others who may experience issues with 3rd party CSS.
2018-02-27 22:09:40 -05:00
Max Hoffmann
9be04b26b4
v1.0.0-beta.4 2018-01-15 10:36:33 -05:00
Max Hoffmann
8410b5b18e
Adds AbstractPlugin class 2018-01-14 13:27:25 -05:00
Max Hoffmann
71ec00d659
Removes race condition for placed class 2018-01-13 18:35:06 -05:00
Max Hoffmann
0d70454bf7
Added cancelable MirrorCreateEvent 2018-01-13 18:26:52 -05:00
Max Hoffmann
4e8e6385e5
Calls drag move in a separate frame after drag start callbacks 2018-01-13 18:07:29 -05:00
Max Hoffmann
a389ee7cc0
AutoScroll now finds next best scrollable parent as one drags 2018-01-13 17:50:00 -05:00
Max Hoffmann
563bb7b6ab
Added getDraggableElementsForContainer public method to draggable 2018-01-13 17:21:43 -05:00
Max Hoffmann
57f7836323
Added original source class for draggable elements 2018-01-13 17:11:13 -05:00
Max Hoffmann
3c375ed46e
Add AutoScroll plugin for draggable 2018-01-11 11:10:03 -05:00
Max Hoffmann
c0688c68fd
Makes default draggable plugins available statically 2018-01-10 14:14:17 -05:00
Max Hoffmann
0e70ce0e7d
Fixes memory leak in draggables destroy method 2018-01-10 13:35:48 -05:00
Max Hoffmann
8d88896d3e
Prevents over and stop events when canceling drag start 2018-01-10 13:35:48 -05:00
Max Hoffmann
2082745c9d
Mirror removes margin on creation 2018-01-10 13:35:47 -05:00
Max Hoffmann
089cff6686
Draggable triggers after changing element classes 2018-01-10 13:35:47 -05:00
Max Hoffmann
fbe6b93e38
Source parent container as appendable container default 2018-01-10 13:35:47 -05:00
Tim Rourke
05c77b1a48 Move stub to helper file
Define containers once

Create new instance for each test

Linting

Linting

Add assertion, update stub

Use expecteds

Move expecteds up in scope

Use triggerEvent helper
2018-01-08 20:26:24 -06:00
Tim Rourke
bbf726f63f Fixing merge conflict errors
Replace outdated test with more meaningful coverage for constructor

Clarify test label

activePlugins -> plugins

Sensors API has changed

triggerEvent no longer a method

No longer attaching event listeners to containers

New plugins detach API

sensors no longer a method

triggerEvent no longer a method

trigger API changed

New Sensors API

New sensors API

Fix eslint errors
2018-01-08 20:26:24 -06:00
Tim Rourke
7b4b71f74d Export default options
Add tests for constructor

Add test for attaching event listeners on init

Remove linebreak

Add tests for attachig plugins

Add tests for attaching native sensors

Add tests for attaching non-native sensors

Add test for triggering DraggableInitializedEvent on init

Add tests for sensors

Add tests for destroy

Simplify instance creation

Add test for removing event listeners on destroy

Add test for on

Add tests for off and fix indentation

Add tests for classnames

Fix eslint errors
2018-01-08 20:26:24 -06:00
Max Hoffmann
bcbead406c
Merge pull request #94 from jackjennings/patch-1
Fix MirrorEvent documentation attribute types
2017-11-17 14:05:55 -05:00
Max Hoffmann
544c236611
Fix tests on master for DragSensor 2017-11-17 14:00:26 -05:00
Jack Jennings
c7ba7fda04
Fix MirrorEvent documentation attribute types
Three attributes listed in the documentation as String types are actually HTML Elements. This updates the documentation to reflect the correct event attribute types.
2017-11-13 00:24:52 -08:00
Max Hoffmann
400ae09859
Merge pull request #32 from timrourke/feature/add-drag-sensor-test-coverage
Add test coverage for DragSensor
2017-11-07 10:06:03 -05:00