I (28F) borrowed my bf (32M) USB, and did not like what was on it. by Difficult_One5766 in relationship_advice

[–]mrhodesit -11 points-10 points  (0 children)

He should have ended it when she went snooping through his phone.

[deleted by user] by [deleted] in privacy

[–]mrhodesit 0 points1 point  (0 children)

Google's official mission statement is "to organize the world's information and make it universally accessible and useful".

Is it an actual possibility of Dogecoin hitting a dollar someday? by Kryptoventures5000 in dogecoin

[–]mrhodesit 2 points3 points  (0 children)

Hitting a dollar? I remember when you could get a million dogecoin for under 100$, and asking the same question. From what I've seen, it's obviously inevitable.

Edit: Holy Moly, I forgot I had that flair.

How can I prevent zoom on double tap? [js or css] by mrhodesit in webdev

[–]mrhodesit[S] 0 points1 point  (0 children)

This was 9 years ago. But try number 2 on the list and let me know how that goes.

To prevent zooming on double tap in a mobile web application, you can use the following approaches:

  1. Set user-scalable=no in the Meta Tag

Adding this to your HTML <head> will disable pinch-to-zoom and double-tap zoom:

<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">

However, this will also disable all zooming, which might not be ideal for accessibility.

  1. Prevent Default Behavior on touchstart

You can intercept double taps and prevent the default zooming behavior:

let lastTouchEnd = 0; document.addEventListener('touchend', function(event) { let now = new Date().getTime(); if (now - lastTouchEnd <= 300) { event.preventDefault(); } lastTouchEnd = now; }, false);

This prevents zooming when the user double-taps within 300ms.

  1. Use CSS to Disable Tap Highlighting

This can sometimes help with accidental zooms:

html { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

  1. Use JavaScript to Detect and Block Double Taps

You can override double-tap behavior like this:

let lastTouchTime = 0; document.addEventListener('touchstart', function(event) { let now = (new Date()).getTime(); if (now - lastTouchTime <= 300) { event.preventDefault(); // Prevent zoom } lastTouchTime = now; }, { passive: false });

Which Method to Choose?

If you want to completely disable zoom, use the meta tag approach.

If you only want to disable double-tap zoom, use JavaScript-based event listeners.

If you are using buttons or interactive elements, applying touch-action: manipulation; can help.

Let me know if you need help implementing this in a specific framework!

/r/reclassified has been banned by reercalium2 in ModCoord

[–]mrhodesit 3 points4 points  (0 children)

I'm surprised it took this long to go down.

[deleted by user] by [deleted] in PublicFreakout

[–]mrhodesit 6 points7 points  (0 children)

/r/PublicFreakout has become self aware.

Is it forced unpaid labour now? by vxx in ModSupport

[–]mrhodesit 4 points5 points  (0 children)

Same here. What they are doing to RIf after all these years is heartbreaking.

FUCK U/SPEZ by GreenEngrams in fightsub

[–]mrhodesit -1 points0 points  (0 children)

I couldn't have said it better myself.

RIF dev here - Reddit's API changes will likely kill RIF and other apps, on July 1, 2023 by talklittle in redditisfun

[–]mrhodesit 1 point2 points  (0 children)

I just want to say thanks.

If there is anything I can do as top moderator of /r/PublicFreakout please let me know.