web项目,我在做这种效果的时候,是监听zepto的e的位置,把p的位置放在手指的右上角,但是看到X宝,如果好像这种p的形状和位置有点关系,该如何控制呢。这个范围该如何把控呢?可能是自己对这个e的位置理解不够。求解答。
阿神2017-04-17 13:51:39
zepto seems to have a long press event, and then use the position of e.client to determine the display orientation in that event function
ringa_lee2017-04-17 13:51:39
Don’t the touch events have attributes such as pageX and pageY? Position p based on these attributes
大家讲道理2017-04-17 13:51:39
Bind the event to a specific p, and then place the pop-up p
according to the clicked position