jmpressjs / jmpress.js

A jQuery plugin to build a website on the infinite canvas
http://jmpressjs.github.com/jmpress.js
1.5k stars 237 forks source link

An option forbin loop ? #99

Closed kkxlkkxllb closed 11 years ago

kkxlkkxllb commented 11 years ago

i expect it wont goto the first step when at the end step i trigger next(). also wont goto the last step when i trigger prev() has any easy solution?

sokra commented 11 years ago

You can do this with the route command:

$(...).jmpress("route", "#last", true);
$(...).jmpress("route", "#first", true, true);
kkxlkkxllb commented 11 years ago

thank u,i found the doc about route:http://jmpressjs.github.com/docs/ways.html