Giter Site home page Giter Site logo

hamster.js's People

Contributors

gbokiau avatar hccampos avatar kfei avatar monospaced 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

hamster.js's Issues

npm ownership

Hello,
I added you to npm owner of hamsterjs packege.
Please remove me and update package.
Best regards, Darya Malysheva (ws.malysheva [ ] gmail.com)

no destroy ?

Hi,

Thanks a lot for this package.

Can you provide a destroy function ?

I try with unwheel, but i thinks it's not enough

Thanks !

Error in Safari 7.1

When you use the mousewheel on the example page, Safari 7.1 throws "TypeError: Attempted to assign to readonly property." on line 232.

unwheel method throw an error

const onWheel   = (e, delta, deltaX, deltaY) => {}
const { body }  = document
Hamster( body ).wheel( onWheel )
Hamster( body ).unwheel( onWheel )

throw an error

TypeError: undefined is not an object (evaluating 'handlers.normalised')
remove — hamster.js:153
offEvent — hamster.js:87

same is in #14

with navigators :

  • Chrome 60.0.3112.101
  • Safari 10.1.1 (12603.2.4)
  • Firefox 54.0.1

package.json main property is wrong

Hello,

Currently main entry has the value "elastic". It should be hamster.js . It is not possible to require this module without this. (as commonjs / npm module)

Typo on home page

There is a typo on your home page I thought you might like to be aware of.

No jQuery or other libraries required, but an adpater for AngularJS is available. Tested in these core browsers.

using both mouse wheel and trackpad gives inconsistent results

Mixing both mouse wheel and trackpad gives inconsistent results.
On the demo page, on rectangle #2:

  1. scroll using mouse wheel -> gives small deltas, +/- 1 for one wheel movement
  2. then switching to trackpad (two fingers scrolling on mac) -> gives also small deltas when going slowly
  3. switching back to mouse wheel -> deltas are now +/- 40

Mac OS X, chrome 35

Odd values from Chrome on Windows

Hi,

I'm having a trouble when I try to get normalized values, especially for Chrome on Windows 7 :
• for mouse wheel up and down, on Chrome Mac, on your demo website, I get values between : 400, -400
• on Firefox (both Windows and Mac), inertia makes values sometimes go crazy : 5000, -5000 but I can handle it
• on Chrome Windows, it's really weird, with the same test as above, I get : 4, -4 max.

What can i do ?

macOS scroll speed

Library was working fine using the delta. Upgraded to macOS and the scroll speed is outrageously fast now, and pretty much unusable.

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.