未验证 提交 6f1dddb8 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #19067 from shunp/patch_multiple_scenes_comparison_slidemode

Examples: Make event handling more robust in scene comparison demo.
......@@ -163,7 +163,7 @@
sliderMoved = true;
sliderPos = e.pageX || e.touches[ 0 ].pageX;
sliderPos = ( e.pageX === undefined ) ? e.touches[ 0 ].pageX : e.pageX;
//prevent the slider from being positioned outside the window bounds
if ( sliderPos < 0 ) sliderPos = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册