Hi guys,
recently I reviewed Story.js and, after being "reminded" by this thread
[1], decided to implement my old idea: make shift+click to open the
"target" tiddler and close the "source" tiddler.
For this, I created this simple plugin:
var orig_onClickTiddlerLink = onClickTiddlerLink;
onClickTiddlerLink = function(ev) {
var result;
if(ev.shiftKey) {
result = orig_onClickTiddlerLink(ev);
var tid = story.findContainingTiddler(this);
if(tid) {
var tName = tid.getAttribute("tiddler");
story.closeTiddler(tName);
}
} else
result = orig_onClickTiddlerLink(ev);
return result;
}
which hijacks the onClickTiddlerLink function.
However, this causes animation to throw the zoomer thing below the "source"
tiddler and scrolls the document there, while the "source" tiddler get
closed, so the "target" tiddler is opened above that place.
Any ideas how to change this? Well, animation doesn't bothers me much, but
I'd prefer the page to scroll to the tiddler's real position instead of
some other.
Best regards,
Yakov.
[1]
https://groups.google.com/forum/?fromgroups=#!topic/tiddlywikidev/J5CPq4HD2og
--
You received this message because you are subscribed to the Google Groups
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywikidev?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.