Mario,

I hadn't even thought to test that. I think you are correct about the 
position tracking but I am not sure how to do that, I need to do some more 
research. I don't think that the multi-touch api solves this problem, but I 
think that implementing tracking for it would be worth doing.

At the moment the mouse position is tracked by a global onmousemove handler 
that saves the mouse position as $tw.mouseX and $tw.mouseY.

I may have to add a mouse move handler to the $mouse widget itself, that 
would limit the places where the mouse position is tracked but it would 
allow any pop-ups to move with the tiddlers. As it is they stay in the same 
position relative to the document even when the tiddler river moves.

On Thursday, March 5, 2020 at 9:02:02 PM UTC+1, Mat wrote:
>
> Dear all, for EditorMagic <http://editormagic.tiddlyspot.com/> I am 
> really hoping to show the popup at cursor position. Fellow Snowgoon uses 
> this code in his comptext plugin in TW:
>
>
> https://github.com/snowgoon88/TW5-extendedit/blob/master/plugin/files/cursor-position.js
>
> I don't understand js. How would I use this to position a div? Is it 
> possible? Is there some kind of command?
>
> What I want to do is to control the position of a popup (a div) to be just 
> below the cursor. I assume the most critical bit for this is to identify 
> the x,y values for the cursor.
>
> Thank you.
>
> <:-)
>
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/3716fe61-c760-44b6-a3b5-2fde354dcf84%40googlegroups.com.

Reply via email to