Hello Ravi,
The current version does not pass this information for longpress event. So you probably have to modify the source code of the library. Although not tested by me, the below code snippet shows the possible change required in case statement
case 'longpress':
data.startPoint = {
"x": touches[0].pageX,
"y": touches[0].pageY
};
data.startDate = e.timeStamp;
if (settings.triggerStartPhase) {
$target.trigger('touchy-longpress', ['start', $target, {
"startPoint": data.startPoint}
]);
}
data.timer = setTimeout($.proxy(function() {
$target.trigger('touchy-longpress', ['end', $target, {
"startPoint": data.startPoint
]);
}, this), settings.msThresh);
break;
Regards,