We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Firefoxを38ESRから、45ESRにバージョンアップしたところ、 SVG要素でのoffsetX/offsetYプロパティの値が不正になったと思われるので報告致します。
【環境】 OS/ブラウザ: Windows10/Firefox38ESRと45ESR ※同じ端末 hifiveのバージョン: 1.2.2
【手順】 ほぼ同じ位置(目視)のSVG要素に対して context.event.currentTarget.offsetXとoffsetYを取得したところ、 Firefox38ESR offsetX=606, offsetY=114.66668701171815 Forefox45ESR offsetX=265, offsetY=40 と差が出ました。
【参考情報】 検討外れなことを言っていたら申し訳ありませんが、 デバッグするとnormalizeEventObject関数内で event.offsetXとevent.offsetYの値がFirefox38ESRではnullであったのが Firefox45ESRではnullではなくなっていることが影響しているように見えます。
下記ページを拝見すると、firefoxではSVG要素もしくはその子要素は offsetが計算されないことを前提にしていたのが、 45ESRではoffsetが入るようになったため、値が異なったのではと予想しています。 https://www.htmlhifive.com/conts/web/view/reference/event_normalize
The text was updated successfully, but these errors were encountered:
hifiveのSVG要素のオフセット値の正規化についての従来の動作について http://www.htmlhifive.com/conts/web/view/reference/event_normalize#HcurrentTarget304Csvg30BF30B0300130823057304F306F305D306E28foreignobject30BF30B05185306E89817D2030929664304F295B5089817D20306E58345408
Sorry, something went wrong.
tkmHashi
No branches or pull requests
Firefoxを38ESRから、45ESRにバージョンアップしたところ、
SVG要素でのoffsetX/offsetYプロパティの値が不正になったと思われるので報告致します。
【環境】
OS/ブラウザ: Windows10/Firefox38ESRと45ESR ※同じ端末
hifiveのバージョン: 1.2.2
【手順】
ほぼ同じ位置(目視)のSVG要素に対して
context.event.currentTarget.offsetXとoffsetYを取得したところ、
Firefox38ESR offsetX=606, offsetY=114.66668701171815
Forefox45ESR offsetX=265, offsetY=40
と差が出ました。
【参考情報】
検討外れなことを言っていたら申し訳ありませんが、
デバッグするとnormalizeEventObject関数内で
event.offsetXとevent.offsetYの値がFirefox38ESRではnullであったのが
Firefox45ESRではnullではなくなっていることが影響しているように見えます。
下記ページを拝見すると、firefoxではSVG要素もしくはその子要素は
offsetが計算されないことを前提にしていたのが、
45ESRではoffsetが入るようになったため、値が異なったのではと予想しています。
https://www.htmlhifive.com/conts/web/view/reference/event_normalize
The text was updated successfully, but these errors were encountered: