Giter Site home page Giter Site logo

Comments (3)

TJRL avatar TJRL commented on June 11, 2024 1

Hi @ElectricEye89 ,

I don't think there is an easy way to adjust mouse sensitivity. The orbit speed is relative to screen coordinates of the mouse pointer or touch location, so with big touch screens it will go slower. You'll have to find where this is defined in the core files, and adjust the function that transfers the screen coordinates to trackball position. Another option would be to make a mini trackball, similar to the mini light trackball as seen in this application. Again, you'll need to adjust the code, in order to make it control the view direction rather than light direction.

But I'm just a user and perhaps the developers have a better solution I'm not aware of.

Edit: check this related issue, with some hints. Here they indeed suggest to modify one of the core files (spidergl.js).

from 3dhop.

potenziani avatar potenziani commented on June 11, 2024 1

Hi @ElectricEye89 ,

if you want to modify the mapping of dragging interactions (rotation and pan) in 3DHOP, you just need to edit the numeric values at the end of lines 2683/4 in 3DHOP 4.2 (or lines 2604/5 in current 3DHOP DEVELOPMENT version) in the "presenter.js" file:

if(ui.dragDeltaX(button) != 0) this.x += (ui.cursorDeltaX/500);
if(ui.dragDeltaY(button) != 0) this.y += (ui.cursorDeltaY/500);

If you substitute 500 with lower values, you will get a "more responsive" interaction...

Warning: this change will act on every kind of interaction (mouse + touch) and (of course) on all the devices. So, it is ok if you are working on a closed kiosk, but probably it is not the better option if your app is online.
In the latter case, please check the issue mentioned by @TJRL (by the way, thanks for your answer!), it will require you some more effort, but, at the same time, it will allow you to edit just the touch mapping.

from 3dhop.

ElectricEye89 avatar ElectricEye89 commented on June 11, 2024

Thank you both for the quick response. Since we only needed this to reflect in our Kiosk, we were able to adjust that 500 value down in the presenter.js file, and it works like a charm!

Thanks again!

from 3dhop.

Related Issues (20)

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.