Commits

Mathias Panzenböck committed eb003c4 Merge

merged README.md from default branch

  • Participants
  • Parent commits 0aa328e, 6847386
  • Branches ff3

Comments (0)

Files changed (1)

 - drag/arrow keys: Panning
 - windows scroll/command scroll: Rotate
 - shift windows scroll/shift command scroll: Rotate with smaller increments
-
-Note
-----
-This add-on only works when you add following code to Jetpacks packages/addon-kit/lib/context-menu.js:
-
-	function CustomContext(isContext) {
-	  let opts = apiUtils.validateOptions({ isContext: isContext }, {
-	    isContext: {
-	      is: ["function"],
-	      msg: "isContext must be a function."
-	    }
-	  });
-	
-	  this.isCurrent = function CustomContext_isCurrent(popupNode) {
-	    try {
-	      return isContext(popupNode);
-	    }
-	    catch (e) {
-	      console.exception(e);
-	      return false;
-	    }
-	  };
-	}
-	
-	CustomContext.prototype = new Context();
-	
-	exports.CustomContext = apiUtils.publicConstructor(CustomContext);