on topic pages, center on topic using alt+click
This commit is contained in:
parent
c567f07a50
commit
9cedf247f9
1 changed files with 6 additions and 2 deletions
|
@ -204,8 +204,12 @@ function selectNodeOnClickHandler(node, e) {
|
|||
selectNodeOnRightClickHandler(node, e)
|
||||
return;
|
||||
}
|
||||
|
||||
console.log(e);
|
||||
|
||||
// if on a topic page, let alt+click center you on a new topic
|
||||
if (!mapid && e.altKey) {
|
||||
centerOn(node.id);
|
||||
return;
|
||||
}
|
||||
|
||||
var check = nodeWasDoubleClicked();
|
||||
if (check) {
|
||||
|
|
Loading…
Reference in a new issue