1. XenForo 1.5.14 中文版——支持中文搜索!现已发布!查看详情
  2. Xenforo 爱好者讨论群:215909318 XenForo专区

新闻 PEP 0.4.0 发布,Web 统一事件系统 下载

本帖由 漂亮的石头2015-11-06 发布。版面名称:软件资讯

  1. 漂亮的石头

    漂亮的石头 版主 管理成员

    注册:
    2012-02-10
    帖子:
    487,342
    赞:
    47
    PEP 0.4.0 发布,主要更新包括,更好地支持 module bundlers。详细内容如下:


    • Fixed module inclusion for node, browserify, webpack, etc. (#223, 6a9c6f0, 19122a3)


    • Added WIP build to CDN. (#230)


    • Moved pointerevents.js to src/ directory. (#239, fbf316b)


    • Check for standard properties before prefixed properties (#225, 1c93f07)


    • Fixed issue when mutation observers aren't supported. (#204, d928d44)


    • Fixed Node.contains() bug in Firefox. (#193, 589bd3f)


    • Fixed tests for PointerMap API (#196, efce89d)


    • Added watch task to rebuild on source changes. (#236, 19e739e)


    • Improved buttons property for pointerdown and pointerup events. (#166, 0e3fb28)


    • Replaced touch-action list with spec reference. (#210, 983f24c)


    • Added example for using PEP with jQuery. (#163, 35ac341)


    • Replaced PointerMap with potentially-sparse-array-based Map polyfill. (8c6d453)
    参见 changelog.
    下载地址: npm, bower (pepjs), the jQuery CDN, GitHub release

    PEP(Pointer Events Polyfill) 是 Web 平台的统一事件系统。

    鼠标事件和触摸事件在浏览器中是完全不同的,很难写出跨平台的应用。此应用就是为了解决这个问题,统一事件的处理,同时监听桌面的鼠标事件和移动端的触摸事件。

    完全支持:Chrome 18+, Safari 6+, IE 10, Firefox 14+;部分支持 Opera 12-14。
    PEP 0.4.0 发布,Web 统一事件系统下载地址
     
正在加载...