Giter Club home page Giter Club logo

el-igo's People

Contributors

misohena avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

alphapapa alhassy

el-igo's Issues

igo-orgでクリックの座標がずれる

クリックした場所とは違う場所に石が配置されてしまうことがある。
クリックする場所によっては(盤外なので)単に配置されない。

次の条件が満たされた時に発生する。

  • #+STARTUP: indent を使っているとき
  • ヘッドラインの後など実際にインデントが効いている場所にigoブロック(begin_igo~end_igo)を配置したとき
  • 盤面の画像がウィンドウの一番上に来るとき

この条件が揃っているとクリックイベントの(dx . dy) (posn-object-x-yで取得できる)がずれた座標になる。
クリックした位置よりも数百ピクセル上、少しだけ右の座標になっている。

scratchバッファで画像を生成して試したところ、次のことが分かった。

  • 画像(displayプロパティ)が設定されているテキストにline-prefixプロパティも設定させているときに同じ現象が起きる
  • line-prefixプロパティで設定した文字の左上を基準(0 . 0)とする座標になる
  • 画像(行?)がウィンドウの一番上に来るときにのみ起きる
  • 画像(行?)がウィンドウの一番上に来ないときはline-prefixに関係なく画像の左上を基準にした座標になる
  • 画像の左に文字を置いてそこにだけline-prefixを設定した場合は一番上でも画像を基準にした座標になる

この動作がEmacsの仕様なのかは不明。

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.