forked from mystiq/hydrogen-web
Use createEnum
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
33ac34b04e
commit
bbeb909bdc
1 changed files with 3 additions and 4 deletions
|
@ -14,10 +14,9 @@ See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export class ScrollDirection {
|
import {createEnum} from "../../../../utils/enum.js";
|
||||||
static get downwards() { return 1; }
|
|
||||||
static get upwards() { return -1; }
|
export const ScrollDirection = createEnum("upwards", "downwards");
|
||||||
}
|
|
||||||
|
|
||||||
export class ItemRange {
|
export class ItemRange {
|
||||||
constructor(topCount, renderCount, bottomCount) {
|
constructor(topCount, renderCount, bottomCount) {
|
||||||
|
|
Loading…
Reference in a new issue