←back to thread

133 points shinzub | 1 comments | | HN request time: 0.212s | source
Show context
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 #
1. efortis ◴[] No.42743523[source]
and `disableButtons` on `document.hidden`