on topic pages, center on topic using alt+click
This commit is contained in:
parent
c567f07a50
commit
9cedf247f9
|
@ -204,8 +204,12 @@ function selectNodeOnClickHandler(node, e) {
|
||||||
selectNodeOnRightClickHandler(node, e)
|
selectNodeOnRightClickHandler(node, e)
|
||||||
return;
|
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();
|
var check = nodeWasDoubleClicked();
|
||||||
if (check) {
|
if (check) {
|
||||||
|
|
Loading…
Reference in a new issue