Giter Site home page Giter Site logo

Click position offset about el-easydraw HOT 2 CLOSED

misohena avatar misohena commented on May 30, 2024
Click position offset

from el-easydraw.

Comments (2)

misohena avatar misohena commented on May 30, 2024

問題の起きる状況についていくつか私に教えて頂けないでしょうか。

問題が起きるのはどのコマンドを実行したときでしょうか。恐らく問題が起きたのはあなたがカラーピッカーを使用したときだと思います。あなたが使用したのは edraw-color-picker-read-color でしょうか、それとも edraw-color-picker-insert-coloredraw-color-picker-replace-color-at-point でしょうか。

また、それらのコマンドの間で位置のずれ方(オフセット)に違いはあるでしょうか。

edraw-color-picker-insert-colorやedraw-color-picker-replace-color-at-pointを使用した場合、カラーピッカーが表示される場所は現在のポイントの位置によって変化します。特にカラーピッカーの水平位置はポイントのカラム位置によって変化します。カラーピッカーが表示される場所によってずれ方(オフセット)は変化するでしょうか。

私は以前別のプロジェクトでこれと似たような問題を見たことがあります。 (misohena/el-igo#1 )

その時の調査によれば、line-prefixテキストプロパティが使用されているとマウスイベントの座標がずれることが分かっています。例えばorg-modeにおいて org-indent-mode(または #+STARTUP: indent)を使用すると行頭に画像があるときにクリック位置がずれることが分かっています。この問題の解決方法はまだ分かっていません。

(Google Translate):
Let me confirm a few things about the problem.

Which command does the problem occur? Perhaps the problem occurred when you used the color picker. Did you use edraw-color-picker-read-color , or edraw-color-picker-insert-color or edraw-color-picker-replace-color-at-point ? .

Also, is there a difference in the position shift (offset) between those commands?

When using edraw-color-picker-insert-color or edraw-color-picker-replace-color-at-point, the location where the color picker is displayed depends on the current point position. In particular, the horizontal position of the color picker changes depending on the column position of the point. Does the offset change depending on where the color picker is displayed?

I've seen a similar problem in another project before. (misohena/el-igo#1 )

Investigations at that time showed that the coordinates of the mouse event were misaligned when the line-prefix text property was used. For example, using org-indent-mode (or #+STARTUP: indent ) in org-mode has been found to shift the click position when there is an image at the beginning of the line. The solution to this problem is not yet known.

from el-easydraw.

misohena avatar misohena commented on May 30, 2024

状況がよく分からず返答も無いのでクローズします。

Emacsにはマウス座標がずれるバグがいくつか見つかっています。気になるようならEmacsにバグ報告して下さい。

(Google Translate):
I don't understand the situation well and there is no reply, so I will close it.

Some bugs have been found in Emacs that cause mouse coordinates to shift. Please report bugs to Emacs if you are concerned.

from el-easydraw.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.