]> git.gir.st - VimFx.git/commit
Improve nonCoveredPoint checks
authorSimon Lydell <simon.lydell@gmail.com>
Sun, 29 May 2016 09:29:34 +0000 (11:29 +0200)
committerSimon Lydell <simon.lydell@gmail.com>
Sun, 29 May 2016 09:29:34 +0000 (11:29 +0200)
commit48e0565988c085f0c64398ab5d34fe45edcb715a
treee6c538e9e10eb5a783c553a03aa531d5adea5a66
parent86bad519440b19ab0303e07836eef0c83fe8590f
Improve nonCoveredPoint checks

- Skip trying to the right of a covering element if that's further to
  the right than the element's rect.

- If the covering element is a parent to the element we're checking,
  don't try looking to the right of the parent. It is _very_ unlikely
  that we'll find the element we're checking there. Instead, try the
  most likely point to be non-covered: The center of the element. This
  needs to be done because of pseudo-elements of the parent element
  which might cover the link partly, likely at the edges. Fixes #742.
extension/lib/markable-elements.coffee
Imprint / Impressum