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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "kfb-view",
3
3
  "description": "一个在线kfb的阅片软件",
4
- "version": "2.3.3",
4
+ "version": "2.3.4",
5
5
  "author": "qifeng.fan <qifeng.fan@hzztai.com>",
6
6
  "license": "MIT",
7
7
  "main": "lib/kfb-view.js",
@@ -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();