←back to thread

237 points shinzub | 2 comments | | HN request time: 0s | source
1. efortis ◴[] No.42694149[source]
I think the suggested mitigation will only work when the user double-clicks without moving the mouse.

So I'd try adding a small timeout when the tab is visible:

  document.addEventListener("visibilitychange", () => {
    if (!document.hidden)
      setTimeout(enableButtons, 200)
  })
replies(1): >>42743523 #
2. efortis ◴[] No.42743523[source]
and `disableButtons` on `document.hidden`