收藏
回答

bindtap获取的force字段含义

对一个按钮设置bindtap的事件,采集到的数据中,有一项是force,如下所示:

{"type":"tap","timeStamp":7667,"target":{"id":"","offsetLeft":0,"offsetTop":0,"dataset":{}},"currentTarget":{"id":"","offsetLeft":0,"offsetTop":0,"dataset":{}},"detail":{"x":276.4107360839844,"y":22.62050437927246},"touches":[{"identifier":0,"pageX":276.4107360839844,"pageY":22.62050437927246,"clientX":276.4107360839844,"clientY":22.62050437927246,"force":1}],"changedTouches":[{"identifier":0,"pageX":276.4107360839844,"pageY":22.62050437927246,"clientX":276.4107360839844,"clientY":22.62050437927246,"force":1}],"_requireActive":true,"_relatedInfo":{"anchorTargetText":"一键复制","anchorRelatedText":"","anchorTapTime":1549955498761}}


其中"force":1这个字段是什么含义? 官网文档并无解释。特此求助。

最后一次编辑于  02-12  (未经腾讯允许,不得转载)
邀请回答
复制链接收藏投诉关注问题回答

3 个回答

  • 卢霄霄
    卢霄霄
    02-12

    3D touch?

    02-12
    赞同
    回复
  • 吴奕群
    吴奕群
    02-12

    不懂+1

    02-12
    赞同
    回复
  • cunjinli
    cunjinli
    02-14
    force表示压力大小,是从0.0(没有压力)到1.0(最大压力)的浮点数


    02-14
    赞同
    回复