Skip to content

Instantly share code, notes, and snippets.

View Kirkman's full-sized avatar

Josh Renaud Kirkman

View GitHub Profile
@Kirkman
Kirkman / gist:87532d5e3bc5cd8ed844
Last active August 29, 2015 14:13
Circular scrolling for Synchronet's frame.js
this.scrollCircular = function(x,y) {
var update = false;
if (typeof y == "number" && y > 0 && settings.v_scroll) {
for (var i=0; i<y; i++) {
var rowToMove = properties.data.shift();
properties.data.push(rowToMove);
update = true;
}
}