Commit 1cebe429 authored by Miłosz Sobczak's avatar Miłosz Sobczak
Browse files

fixes throving error when startingPos object is not defined

Showing with 5 additions and 3 deletions
+5 -3
{
"name": "image-mask-cropper",
"version": "1.4.1",
"version": "1.4.2",
"homepage": "http://gl.pixers.pl:8080/milosz.sobczak/image-mask-cropper/tree/master",
"authors": [
"milosz.sobczak@pixers.pl"
......
......@@ -482,6 +482,7 @@
diff.y = startMousePos.y - (e.pageY || e.originalEvent.touches[0].pageY);
throttle(5, function () {
if (startPosCSS === null || diff.x === null || diff.y === null) return;
self._moveCropZoneOrImage (startPosCSS, diff);
});
}
......
This diff is collapsed.
{
"name": "image-mask-cropper",
"description": "Jquery library that gives you ability to move images across container using mask as well",
"version": "1.4.1",
"version": "1.4.2",
"author": "Miłosz Sobczak <milosz.sobczak@pixers.pl>",
"devDependencies": {
"gulp": "3.9.0",
......
......@@ -482,6 +482,7 @@
diff.y = startMousePos.y - (e.pageY || e.originalEvent.touches[0].pageY);
throttle(5, function () {
if (startPosCSS === null || diff.x === null || diff.y === null) return;
self._moveCropZoneOrImage (startPosCSS, diff);
});
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment