Browse Source

Fixed #908, unselecting nodes and edges now only when clicking in void.

flowchartTest
Alex de Mulder 9 years ago
parent
commit
9111c23ff9
3 changed files with 29504 additions and 29497 deletions
  1. +1
    -0
      HISTORY.md
  2. +29499
    -29496
      dist/vis.js
  3. +4
    -1
      lib/network/modules/SelectionHandler.js

+ 1
- 0
HISTORY.md View File

@ -19,6 +19,7 @@ http://visjs.org
- Added beginnings of unit testing for network.
- Fixed #904, correctly parsing global font options now.
- Fixed dataView support for storePositions.
- Second click on node is no longer unselect.
## 2015-05-28, version 4.1.0

+ 29499
- 29496
dist/vis.js
File diff suppressed because it is too large
View File


+ 4
- 1
lib/network/modules/SelectionHandler.js View File

@ -41,8 +41,11 @@ class SelectionHandler {
selectOnPoint(pointer) {
let selected = false;
if (this.options.selectable === true) {
this.unselectAll();
let obj = this.getNodeAt(pointer) || this.getEdgeAt(pointer);
// unselect after getting the objects in order to restore width and height.
this.unselectAll();
if (obj !== undefined) {
selected = this.selectObject(obj);
}

Loading…
Cancel
Save