devexpress-richedit
Version:
DevExpress Rich Text Editor is an advanced word-processing tool designed for working with rich text documents.
20 lines (19 loc) • 513 B
JavaScript
import { EventDispatcher } from '../utils/event-dispatcher';
export class ModelScrollManager {
state;
onChanged = new EventDispatcher();
constructor() {
this.init();
}
setScroll(state) {
this.state = state;
}
init() {
this.state = null;
}
raiseOnChanged() {
this.onChanged.listeners.forEach(listener => listener.NotifyScrollChanged());
}
static StandartScrollPosition = -1;
static DontChangeScrollPosition = -2;
}