libredirect / browser_extension

A browser extension that redirects popular sites to alternative privacy friendly frontends
https://libredirect.github.io
GNU General Public License v3.0
3.29k stars 122 forks source link

[Android] Friendly gesture to switch instance #1021

Open umgpy opened 5 days ago

umgpy commented 5 days ago

It would be nice to switch instances by tapping the screen with two or three fingers or any other gesture(s)

Translate Web Pages extension implements it like this for reference here

  // show/hide popup on 3 finger tap
  window.addEventListener("touchstart", (e) => {
    if (e.touches.length == 3) {
      if (rootElement.isConnected) {
        hidePopup();
      } else {
        showPopup();
      }
    }
  });
IkelAtomig commented 3 days ago

The accesibility issue you are bringing here worth the discussion. I would suggest give some detail on this to work on.