Skip to content
New issue

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

[button]タグに指定したenterseがmousedownイベントでも鳴る #117

Open
kibachi8684 opened this issue Jun 1, 2023 · 0 comments

Comments

@kibachi8684
Copy link

kibachi8684 commented Jun 1, 2023

[button]タグに指定したenterseがmousedownイベント(マウスを押下した直後)でも鳴ります。
hoverイベント時の動作は問題ありません。

j_button.on("mousedown touchstart", () => {
if (!this.kag.stat.is_strong_stop) return true;
if (button_clicked) return true;
if (!j_button.hasClass("src-change-disabled")) {
if (pm.activeimg) j_button.attr("src", $.parseStorage(pm.activeimg, pm.folder));
}
//falseを返すと ipad などの一部環境で不具合
return true;
});

6434行目をreturn trueでなくreturn falseに修正することで、上記問題が発生しなくなることは確認しました。
また[glink]タグと整合させるとreturn falseが正しそうです。
[glink]タグではこの問題が起きないことを確認しました。

ただしコメント文にある //falseを返すと ipad などの一部環境で不具合とあるので
単純にここを変更するだけで終りそうにないという認識です。
#この現象はWindows環境のみで確認しています。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant