News for hackers. Stuff that matters.
Re:Pointer Events Now in Firefox Nightly by mozumder on Wednesday August 05, 2015 @02:01AM (#10008227)
I really don't like the idea of a common pointer event.

Mouse interaction and touch interaction are as different as mouse interaction and keyboard interaction. They really do need to be treated completely differently, with different user experience models and code paths.

Re:Pointer Events Now in Firefox Nightly by pdkl95 on Wednesday August 05, 2015 @04:55AM (#10008602)
What makes you think this is limited to only mouse vs touch? By design the HTML+CSS+DOM platform only provides an abstraction that may or may not have a meaningful mapping to the actual interface of the User Agent.

You really shouldn't be assuming you know anything about the interface and only use pointer events in the most minimal, generic way possible. To that end, this new "pointer event" may be useful. If you want better, more detailed pointer information, you should use a platform that provides it such as writing a native app.

/* the same goes for reimplementing widgets like scrollbars: don't, that's the job of the User Agent */

Re:Pointer Events Now in Firefox Nightly by mozumder on Wednesday August 05, 2015 @12:18PM (#10010847)
This is dangerous, because you have to design for use model, not a generic model.

If you design for a generic model, you're going to end up with a crappy interface.

Re:Pointer Events Now in Firefox Nightly by glandium on Wednesday August 05, 2015 @03:32AM (#10008401)
It's a common interface, but you can still distinguish which of multiple devices triggered the event (with pointerId) and distinguish what type of device it was (with pointerType, which can have values "pen", "touch" or "mouse").
Re:Pointer Events Now in Firefox Nightly by jfoster on Wednesday August 05, 2015 @02:46AM (#10008309)
For some applications you'll be absolutely correct, but there are also applications where they do the exact same thing. Consider the case of panning a map, for example.

My understanding is that this is in addition to the existing mouse & touch APIs, so developers can just use whatever makes sense for their application.