Timezone sensitive date comparisons in Javascript

I’m determining the difference between two calendar dates in Javascript in an Ember app. I’m currently using date-fns’s differenceInCalendarDays. Now that mostly provides the desired results, the only …

Dealing with touchMove events in iOS and Ember

I’m adding iOS support to an Ember application which uses Flame.js. Most Flame.js widgets don’t have built-in support for touch events at the moment, so I’m working on adding it to the ones I need. I’ve got touchStart and touchEnd working just fine for clicking and certain state transitions. However, touchMove has been a mess so far. I need it for dragging, and to do that I need to track where the movement began and where it is. So far I haven’t been able to get all that information consistently from touchMove. Various resources suggest that I should be looking