This commit is contained in:
Anton Lavrenov 2016-09-10 07:57:50 -04:00
parent d5ab66bee4
commit 0eec587cd6
3 changed files with 29 additions and 23 deletions

View File

@ -4,12 +4,16 @@ This project adheres to [Semantic Versioning](http://semver.org/).
## [Not released][Not released]
## [1.1.2][2016-09-10]
### Fixed
- Fixed "Dragging Group on mobile view throws "missing preventDefault" error" #169
## [1.1.1][2016-08-30]
### Fixed
- Fixed #166 bug of drag&drop
## [1.1.0][2016-08-21]
## Added

View File

@ -2267,6 +2267,30 @@
* node.listening('inherit');
*/
/**
* get/set preventDefault
* By default all shapes will prevent default behaviour
* of a browser on a pointer move or tap.
* that will prevent native scrolling when you are trying to drag&drop a node
* but sometimes you may need to enable default actions
* in that case you can set the property to false
* @name preventDefault
* @method
* @memberof Konva.Node.prototype
* @param {Number} preventDefault
* @returns {Number}
* @example
* // get preventDefault
* var shouldPrevent = shape.preventDefault();
*
* // set preventDefault
* shape.preventDefault(false);
*/
Konva.Factory.addGetterSetter(Konva.Shape, 'preventDefault', true);
Konva.Factory.addGetterSetter(Konva.Node, 'filters', undefined, function(val) {this._filterUpToDate = false; return val; });
/**
* get/set filters. Filters are applied to cached canvases

View File

@ -465,28 +465,6 @@
Konva.Factory.addGetterSetter(Konva.Shape, 'strokeWidth', 2);
/**
* get/set preventDefault
* By default all shapes will prevent default behaviour
* of a browser on a pointer move or tap.
* that will prevent native scrolling when you are trying to drag&drop a shape
* but sometimes you may need to enable default actions
* in that case you can set the property to false
* @name preventDefault
* @method
* @memberof Konva.Shape.prototype
* @param {Number} preventDefault
* @returns {Number}
* @example
* // get stroke width
* var strokeWidth = shape.strokeWidth();
*
* // set stroke width
* shape.strokeWidth();
*/
Konva.Factory.addGetterSetter(Konva.Shape, 'preventDefault', true);
/**
* get/set stroke width
* @name strokeWidth