AllanChain / logseq-live-math

Type LaTeX in live mode!
Apache License 2.0
35 stars 1 forks source link

MathLive context menu conflicts with resizing #16

Closed AllanChain closed 7 months ago

AllanChain commented 7 months ago

On a side note, clicking the hamburger menu and selecting an option doesn't release the cursor so you will not be able to type in the math field afterwards. image

Originally posted by @chronos1970 in https://github.com/AllanChain/logseq-live-math/issues/15#issuecomment-1836174165

AllanChain commented 7 months ago

This is related to interact.js usage from Logseq.

https://github.com/logseq/logseq/blob/7525689bfb87009c752916e6a395dac6c64d11a6/src/main/frontend/modules/layout/core.cljs#L83-L88:

 edges: { top: true, left: true, bottom: true, right: true }

The above may not work will with menus (overflow elements for a resizable div)

And demo from CodePen: https://codepen.io/allanchain/pen/poGxMKE?editors=1010