diff --git a/README.md b/README.md index a25e7ad..1497e0e 100644 --- a/README.md +++ b/README.md @@ -112,6 +112,7 @@ eruda.init({ * [eruda-geolocation](https://github.com/liriliri/eruda-geolocation): Test geolocation. * [eruda-dom](https://github.com/liriliri/eruda-dom): Navigate dom tree. * [eruda-orientation](https://github.com/liriliri/eruda-orientation): Test orientation api. +* [eruda-touches](https://github.com/liriliri/eruda-touches): Visualize screen touches. If you want to create a plugin yourself, follow the guides [here](./doc/PLUGIN.md). diff --git a/doc/README_CN.md b/doc/README_CN.md index f2651d0..aa35ba4 100644 --- a/doc/README_CN.md +++ b/doc/README_CN.md @@ -113,6 +113,7 @@ eruda.init({ * [eruda-geolocation](https://github.com/liriliri/eruda-geolocation):测试地理位置接口。 * [eruda-dom](https://github.com/liriliri/eruda-dom):浏览 dom 树。 * [eruda-orientation](https://github.com/liriliri/eruda-orientation):测试重力感应接口。 +* [eruda-touches](https://github.com/liriliri/eruda-orientation):可视化屏幕 Touch 事件触发。 如果你想要自己编写插件,可以查看这里的[教程](./PLUGIN.md)。 diff --git a/src/Snippets/defSnippets.js b/src/Snippets/defSnippets.js index 485e0a5..2c0011b 100644 --- a/src/Snippets/defSnippets.js +++ b/src/Snippets/defSnippets.js @@ -127,6 +127,13 @@ export default [ }, desc: 'Test orientation api' }, + { + name: 'Load Touches Plugin', + fn() { + loadPlugin('touches') + }, + desc: 'Visualize screen touches' + }, { name: 'Restore Settings', fn() { @@ -217,5 +224,6 @@ const pluginVersion = { benchmark: '1.0.0', geolocation: '1.1.0', dom: '1.1.0', - orientation: '1.0.0' + orientation: '1.0.0', + touches: '1.0.0' }