我使用的是A型框架,当您单击并拖动以四处查看时,我想关闭鼠标或手指的默认四处查看行为。我想控制滚动并在用户滚动时在3D空间中移动。如何停止该默认行为?
到目前为止,我有这个:
<a-camera position="0 5 8" fov="50" touchEnabled="false" wasd-controls-enabled="false" look-controls="false" touchEnabled="false">
但是这些属性都不会对默认行为产生任何影响。
我仍然需要单击/轻按对象才能与raycaster一起使用,因此关闭与鼠标/触摸相关的所有内容都不好,我只想关闭单击/触摸以拖动并环顾四周。
谢谢
<a-entity camera></a-entity>
https://glitch.com/edit/#!/chestnut-brook-cheddar?path=index.html%3A12%3A0