on topic pages, center on topic using alt+click

This commit is contained in:
Connor Turland 2014-06-10 19:25:24 -04:00
parent c567f07a50
commit 9cedf247f9

View file

@ -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) {