react-native-signature-canvas
react-native-signature-canvas copied to clipboard
LongPres disable
On ipad device. When I press the area and hold it down, a magnifying glass appears. How do I disable / hide the lens.
I am facing the same situation here.
Having the same issue here, I guess it is related to the OS, for me it's iOS, I noticed the same behavior on any other web page in safari, but if anyone can find a workaround I'd appreciate it
I got the solution for this problem. The problem is caused by the incompatible events pointerup, pointermove, pointerdown SignaturePad.prototype._handlePointerEvents in h5/js/signature_pad.js. The problem can be solved by forcing use event touchstart, touchmove, touchend.
Here is the example of the solution:
SignaturePad.prototype._handlePointerEvents = function () {
this.canvas.addEventListener('touchstart', this._handleTouchStart);
this.canvas.addEventListener('touchmove', this._handleTouchMove);
this.canvas.addEventListener('touchend', this._handleTouchEnd);
};
The app will treat the stylus input as touch input without the problem. However, the manify glass may persist but the input will still work just fine.