- Fix missing dist files for webpack.
- Ignore non-primary clicks. Added
allowAnyClick
option to allow other click types.
- Breaking: Removed
resetState()
instance method - Breaking: Removed
moveOnStartChange
prop - Breaking: React
0.14
support only. - Refactored project.
- Module now exports a
<DraggableCore>
element upon which<Draggable>
is based. This module is useful for building libraries and is completely stateless.
- Bugfix: isElementSVG no longer can be overwritten by getInitialState (#83)
- Bugfix: Fix for element prefixes in JSDOM
- Bugfix: SVG elements now properly use
transform
attribute instead ofstyle
. Thanks @martinRoss
- Bugfix: Short-circuiting drag throws due to
e.changedTouches
check.
- Handle scrolling while dragging. (#60)
- Add multi-touch support. (#68)
- IE fixes.
- Documentation updates. (#77)
- Add
resetState()
instance method for use by parents. See README ("State Problems?").
- Touch/mouse events rework. Fixes #51, #37, and #43, as well as IE11 support.
- Moved mousemove/mouseup and touch event handlers to document from window. Fixes IE9/10 support. IE8 is still not supported, as it is not supported by React.
- Fix a bug where a quick drag out of bounds to
0,0
would cause the element to remain in an inaccurate position, because the translation was removed from the CSS. See #55.
- Removed a
moveOnStartChange
optimization that was causing problems when attempting to move a<Draggable>
back to its initial position. See react-grid-layout/react-grid-layout#56
- Added
moveOnStartChange
property. See README.
- The
start
param is back. Pass{x: Number, y: Number}
to kickoff the CSS transform. Useful in certain cases for simpler callback math (so you don't have to know its existing relative position and add it to the dragged position). Fixes #52.
- Breaking change:
bounds
with coordinates was confusing because it was using the item's width/height, which was not intuitive. When providing coordinates,bounds
now simply restricts movement in each direction by that many pixels.
- Breaking change: Cancel dragging when onDrag or onStart handlers return an explicit
false
. - Fix sluggish movement when
grid
option was active. - Example updates.
- Move
user-select:none
hack to document.body for better highlight prevention. - Add
bounds
option to restrict dragging within parent or within coordinates.
- Remove browserify browser config, reactify, and jsx pragma. Fixes #38
- Use React.cloneElement instead of addons cloneWithProps (requires React 0.13)
- Move to CSS transforms. Simplifies implementation and fixes #48, #34, #31.
- Fixup linting and space/tab errors. Fixes #46.
- Fix React.addons error caused by faulty test.
- Add
"browser"
config to package.json for browserify imports (fix #45). - Remove unnecessary
emptyFunction
andReact.addons.classSet
imports.
- Remove react/addons dependency (now depending on
react
directly). - Add MIT License file.
- Fix an issue where browser may be detected as touch-enabled but touch event isn't thrown.
- Improving accuracy of snap to grid
- Updating to React 0.12
- Adding dragging className
- Adding reactify support for browserify
- Fixing issue with server side rendering
- Adding support for touch devices
- Exporting as ReactDraggable
- Adding support for snapping to a grid
- Adding support for specifying start position
- Ensure event handlers are destroyed on unmount
- Adding browserify support
- Adding bower support
- Fixing dragging not stopping on mouseup in some cases
- Initial release