MCPcopy Create free account
hub / github.com/algorithm-visualizer/algorithm-visualizer / prev

Function prev

src/components/Player/index.js:102–108  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

100 }
101
102 prev() {
103 this.pause();
104 const cursor = this.props.player.cursor - 1;
105 if (!this.isValidCursor(cursor)) return false;
106 this.props.setCursor(cursor);
107 return true;
108 }
109
110 resume(wrap = false) {
111 this.pause();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected