All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.src.event.touch.js Maven / Gradle / Ivy

import "event";
import "mouse";

d3.touch = function(container, touches, identifier) {
  if (arguments.length < 3) identifier = touches, touches = d3_eventSource().changedTouches;
  if (touches) for (var i = 0, n = touches.length, touch; i < n; ++i) {
    if ((touch = touches[i]).identifier === identifier) {
      return d3_mousePoint(container, touch);
    }
  }
};




© 2015 - 2024 Weber Informatics LLC | Privacy Policy