Code Monkey home page Code Monkey logo

aframe-no-click-look-controls's People

Contributors

alexrkass avatar cvan avatar donmccurdy avatar mattdesl avatar ngokevin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

aframe-no-click-look-controls's Issues

File size?

Any way to get this down to a reasonable file size? The minified dist is over 700k (almost as big as aframe min package). Doesn't seem reasonable for someone who just wants to make an a-sky that uses mousemove instead of drag

Consider using Pointer Lock

First off, nice component ๐Ÿ˜„ It might be nice to use the Pointer Lock API (perhaps let people opt-in through some property on the attribute value).

There aren't many but there are a few benefits I can think of: you don't have to do as much math yourself, the user can enable/disable the mousemove-based look controls (aka Pointer Lock) by pressing Escape (which is useful if the user wants to click on things outside or on top of the scene/canvas - see this example of Pointer Lock), and the cursor can be past the boundary of the browser or screen and the scene can still be moved.

Drawbacks? There is a permission prompt that appears when you engage Pointer Lock - but in Chrome you don't have to agree to it; it just shows up (Firefox will soon be changing its permissions treatment in a similar way - also like the Fullscreen API permissions are handled). Anyway, it may be worth looking into using this API. Totally up to you of course - just thought I'd mention it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.