This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Stephen Crowley
Posted Aug 05 - Read on Facebook

Has anyone integrated Hammer.JS w/ Library.JS? When combining the two Hammer events stop working. (https://github.com/facebook/shortcuts-for-framer)

3 Comments

Marc Krenn

Hey Stephen!

I can't really replicate what you're saying - the usual Hammer events seem to work just fine for me. However, I haven't used any library-specific functions, so maybe that's what breaking it for you.

Also I've noticed the prototype won't load locally (gives me the enclosed error-message), so you may want to load it your index.html from a Dropbox public link or Koen's micro server (https://www.facebook.com/groups/framerjs/permalink/540012956125780/).

Download:
https://dl.dropboxusercontent.com/u/7997357/framer/marc/zips/HammerDragPinchRotateWithLibrary.zip

index.html via Dropbox:
https://dl.dropboxusercontent.com/u/7997357/framer/marc/HammerDragPinchRotateWithLibrary.framer/index.html

Stephen Crowley

Hey Marc, thanks for the response! Yeah, I actually use Python's SimpleHTTPServer to see locally. I could use Koen's- would save me some keystrokes. As for your example- Utils.domLoadScriptSync("/plugins/library.js") allows you to not reference it in your index.html?

Marc Krenn

Nope, AFAIK you shouldn't do both. So either put

Utils.domLoadScriptSync("/plugins/library.js")

on top of your code OR include library.js into your index.html with

<script src="plugins/library.js"></script>

Read the entire post on Facebook