GithubHelp home page GithubHelp logo

hammerjs / hammerjs.github.io Goto Github PK

View Code? Open in Web Editor NEW
70.0 7.0 578.0 27.31 MB

Website

Home Page: https://hammerjs.github.io

Ruby 0.01% Makefile 0.02% HTML 86.10% CSS 3.12% JavaScript 1.06% SCSS 9.44% Less 0.25%

hammerjs.github.io's Introduction

hammerjs.github.io

To release a new version of Hammer.js just run make release.

hammerjs.github.io's People

Contributors

arschmitz avatar awethentik avatar bryanbraun avatar colelawrence avatar dmvjs avatar equinox avatar ilyaulyanov avatar jtangelder avatar julkue avatar kara avatar maciekpaprocki avatar mrmitch avatar philipbulley avatar ppcano avatar runspired avatar sebsylvester avatar seutje avatar shammellee avatar tammesalu avatar thejohnsmith avatar tkambler avatar windfarer avatar xfra35 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

hammerjs.github.io's Issues

Panend never fired in Firefox

Hammer.js version 2.0.8

Pan doesn't work as expected in Firefox (normal mouse). Panend never fires.
Works fine in Chrome and Safari.

Getting started is not that usefull

I'm writing you as a new user of Hammer. I can't get start with the very first simplest example in getting started page.

var hammertime = new Hammer(myElement, myOptions);
hammertime.on('pan', function(ev) {
console.log(ev);
});

myElement is clear enought, ok. myOptions is...? Some option I might want, ok, but you don't say anything about it. myOptions = null or {} gives me something like 'Uncaught TypeError: Cannot read property 'addEventListener' of null'.

I'm not expecting help here. I'm just telling you that the getting start may put away some new users.

Missing Tap event while testing with Selenium

The following DOM Elements get about every second a click from Selenium tests
Between them other actions taking place and the JS engine is quite busy.
<div class="taptest" (tap)="onTap($event)">
</div>
<div class="clicktest" (click)="onClick($event)">
</div>

public onTap(event: any) {
countTaps();
}
public onClick(event: any) {
countClicks();
}

Out of 1000 clicks:

  • all (click) events are triggered,
  • but at least one (tap) event is missing

Just in case somebody else has same or similar problem.
Versions used:
V8 engine (https://v8.dev/blog/v8-release-49) Chromium v49 (no pointerEvents)
Hammerjs 2.0.8
Angular 8.2.14

Hammerjs not working

I had this angular page.. working just fine ssr after correcting J's errors in code manually... But I started the same setup yesterday. And now no error messages anywhere to fix. And ever hammer element stuck. I use linode server Debian. With ssl secured signing. But it worked a month ago I tested 2 diff projects same silent error.
If no difference running nose or pm2.
But in dev setup locally it runs fine but not on server. Normally I'd get some errors to fix in logs but nothing at all and linode wanted me to report bug so here I am!
Cheers

Pan-Event not working in iOS

Hey. I am using HammerJs with Angular. On Android the pan-event is working as expected, but on iOS it does not seem to work. Has anyone an idea what the problem could be?

pinch event not working

Hi,

I wanted to scale/pinch to zoom in/out my canvas but was not able to do it using the pinch event from my Desktop. Is there an easier tutorial how to do it? I saw that you have implemented in "http://cdn.rawgit.com/hammerjs/touchemulator/master/tests/manual/hammer.html" but too many to bind of event e.g. pan, swipe, rotate. I only need to scale the canvas without rotating the element. Below is the initialization based on your tutorial.

var hm = new Hammer.Manager(canvas);
hm.on("pinchstart pinchmove", onPinch);

And I want to mock the pinch by using your touch-emulator.js. but not so sure how to use this. the touch event is triggering but I guess we need a little tweak since the event properties return from the touch-emulator is different from the pinch event. Any suggestion to make it simplier? :D

Android issue

PanStart, Pan, Panend is working fine in iOS device. But PanEnd is not working in Android device. It collapse the whole functionality. Is there any solution for this?

Hammer not working in iOS 9

Tap gestures is not working on iOS 9 and I saw that the support is still not there for iOS 9. Is there any date decided for its release? If not, is there any alternative to fix it for now ? Thanks.

Suggestion

I wonder if you want to request the domain hammer.js.org at JS.ORG for free (its just an alias, hammerjs.github.io will still work)

Inconsistent event values for isFirst, isFinal, and eventType

I am seeing events fired consistently but do not see isFirst set consistently on Pan and Pinch events. On Pan events, isFinal is set to true consistently, but on Pinch events isFinal is not set correctly.

It looks like eventType consistently returns a 4 a the end of an event, but does not consistently return a value of 1 when pan and pinch events start.

Other details:

  • Chrome 51.0.2704.63
  • Windows 10
  • I'm using HammerJS in a Polymer Web Component.

Here is my setup code:

var tlFrame = this.$.tlFrame;
var mc = new Hammer(tlFrame);
mc.on("pan", function(e) {
  _self.handleTrack(e);
});

mc.get('pinch').set({ enable: true });
mc.on('pinch', function(e) {
  _self.pinchScale = e.scale;

  if (e.eventType === 1) _self.consoleLog('[PINCH] Start');
  if (e.eventType === 4) _self.consoleLog('[PINCH] End');
});

When I do 4 pinch actions on my laptop touchscreen, this is the console output I see:

image

A Lot of good PR's have not been pulled...

Is the maintainer of this project still around? There are a lot of good PR's that haven't been pulled, and they are getting old. There are dead links on the main page. There is a PR that fixes this. It has been sitting there ready to be pulled. Nobody appears to be around to pull 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.