slackhq / PanModal

An elegant and highly customizable presentation API for constructing bottom sheet modals on iOS.
MIT License
3.68k stars 531 forks source link

PencilKit does not work well in PanModal #144

Open tiking76 opened 3 years ago

tiking76 commented 3 years ago

Description

PencilKit does not work well in PanModal

What type of issue is this? (place an x in one of the [ ])

Requirements (place an x in each of the [ ])


Bug Report

Filling out the following details about bugs will help us solve your issue sooner.

Reproducible in:

PanModal version: 1.2.7

iOS version: 14.4

Steps to reproduce:

  1. Creating a View using PencilKit
  2. Specify the View to be displayed in PanModal.
  3. Show Modal

I've created a minimalist application to reproduce this phenomenon. https://github.com/tiking76/samplePencilKit/tree/main

Expected result:

Be able to draw a line.

Actual result:

It behaves like the attached gif. In the current state, it can only draw dots.

Attachments:

Videotogif (1)

ppamorim commented 3 years ago

You PencilKit instance is not keeping the touch priority, maybe you can use the flag isUserInteractionEnabled from this library to ignore any additional touch.

tiking76 commented 2 years ago

@ppamorim Thank you! I'll try it!!