kfb-view 2.3.3 → 2.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.idea/workspace.xml +66 -61
- package/config/webpack.dev.conf.js +1 -1
- package/example/index.js +46 -9
- package/lib/kfb-view.js +1 -1
- package/package.json +1 -1
- package/src/components/area/index.js +0 -1
- package/src/view.js +4 -0
package/package.json
CHANGED
|
@@ -585,7 +585,6 @@ export class Area extends ViewerCommon {
|
|
|
585
585
|
}, position === 4);
|
|
586
586
|
this.drawPoint(points[1], position === 7);
|
|
587
587
|
} else if (type === RECTANGLE) {
|
|
588
|
-
console.log(12);
|
|
589
588
|
const sp = {
|
|
590
589
|
x: points[0].x < points[1].x ? points[0].x : points[1].x,
|
|
591
590
|
y: points[0].y < points[1].y ? points[0].y : points[1].y,
|
package/src/view.js
CHANGED
|
@@ -412,6 +412,10 @@ function initEvent(kv) {
|
|
|
412
412
|
element: kv.viewer.canvas,
|
|
413
413
|
moveHandler: function(event) {
|
|
414
414
|
if (isRightDown && kv.board?.isInDraw) {
|
|
415
|
+
if (event.buttons !== 2) {
|
|
416
|
+
isRightDown = false;
|
|
417
|
+
return;
|
|
418
|
+
}
|
|
415
419
|
console.log('nonprimary drag');
|
|
416
420
|
let delta = event.position.minus(dragPosition);
|
|
417
421
|
dragPosition = event.position.clone();
|