In demo project you can set the time gap to recognize the long press, and now is set to 1 second.
For that reason it's possible that the long press is not called every time, so you can try to keep tapped for 1 second or change this time gap.
Indeed in the demo project,when I set the time gap superior to 1,it works.But when I tried it on my own project,I have different values,For example, I get
dx = 272 and dy = 713,using the function blow:
You can have a try. Add some breakpoint to longPress gesture and popmenu init method
first , check if popmenu and delegate init is ok.
second, print some log to see in demo when gap superior to 1,then dx and dy point is? And check the point where is different in your project.