Shaw

Results 117 comments of Shaw

The inability to set global ignores in Dropbox is a huge drain on resources. It's been a top request for Dropbox since 2014, with no straight answers from the Dropbox...

Regarding optimization, I made a [Javascript version of this concept utilizing ``](http://codepen.io/shshaw/full/XbxvNj) and was able to cut down file size dramatically using `` instead of ``. My script outputs one...

Glad that might help! I've been tooling with the concept more over the past few days and the `path` + `stroke` is working as expected in every test case I've...

That's what I was doing, with an @codekit-append statement, and CodeKit didn't show any imports on the `plugins.js` file. Saving the file from the skipped directory I was importing and...

This issue still seems to be a problem. If I tell CodeKit to skip a folder, // @codekit-append statements still do not import the file from the skipped folder when...

What scroll are you watching? `document.body`? `document.documentElement`? An element in the DOM? I've had this issue before affecting Chrome & Safari, but may not be strictly related: https://codepen.io/shshaw/pen/OXPKvr

And the goal here is to get an offset that you can use for positioning the camera? I wonder if `getBoundingClientRect()` to get the position of the element relative to...

Oh yes. Apologies. I've run into that before and I thought I had a clever workaround for that, but it was looping through parents to get the `offsetTop`/`offsetLeft` as well!...

I was going to suggest something like this: ``` let style = window.getComputedStyle(elem); let transform = style.transform; elem.style.transform = 'none'; let rect = elem.getBoundingClientRect(); let posX = rect.x; let posY...

Yes, if the values could be cached and only had to be recalculated on resize then it wouldn't be a big deal, but anything that affects `style` running every frame...