web项目,我在做这种效果的时候,是监听zepto的e的位置,把p的位置放在手指的右上角,但是看到X宝,如果好像这种p的形状和位置有点关系,该如何控制呢。这个范围该如何把控呢?可能是自己对这个e的位置理解不够。求解答。
欢迎选择我的课程,让我们一起见证您的进步~~
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
Don’t the touch events have attributes such as pageX and pageY? Position p based on these attributes
Bind the event to a specific p, and then place the pop-up p
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
Don’t the touch events have attributes such as pageX and pageY? Position p based on these attributes
Bind the event to a specific p, and then place the pop-up p
according to the clicked position