Fork me on GitHub
#clojure-europe
<
2023-05-25
>
otfrom06:05:41

Morning. Venus was bright enough last night that I was able to get it on my phone camera

👀 2
wow 6
🌔 2
ray07:05:01

Good morning

2
schmalz07:05:00

Morning all.

dharrigan08:05:58

Good Morning!

reefersleep08:05:13

Good morning, anyways!

Rachel Westmacott09:05:09

Has anyone here ever had the fun of implementing two finger pinch-to-zoom functionality in a mobile web browser?

👀 2
thomas09:05:06

No, but it doesn't sound easy or simple. Maybe there is a lib that can help here?

simongray10:05:52

I would definitely seek out a JS lib. I think the browser APIs are too low-level.

Rachel Westmacott10:05:34

It got pretty far with doing it myself - but whenever I do a pinch to zoom I'm getting odd effects at the start and end of the gesture.

Rachel Westmacott10:05:45

Like I need to do some de-bouncing or something

Rachel Westmacott10:05:05

It's also an area I'm not sure how to debug easily

Rachel Westmacott10:05:19

It looks like hammer.js might be worth a shot though...

mccraigmccraig10:05:00

i had the pleasure of detecting swipe gestures once ...

mccraigmccraig10:05:33

code incoming...

mccraigmccraig10:05:46

don't know if that's useful - it was a long time ago, and i don't remember much detail, apart from it being a pain

Rachel Westmacott10:05:16

yeah, it doesn't speak to the whole pinch-to-zoom gesture thing - but it's interesting, thank you.

👍 2
Rachel Westmacott11:05:35

Well, hammerjs seems to work pretty well, as long as you don't try to println it's objects...