@wildebeest/touch
Advanced tools
Comparing version 0.2.1 to 0.3.0
export { TouchModule } from './TouchModule'; | ||
export { TouchElement } from './TouchElement'; | ||
export { TouchComponent } from './TouchComponent'; |
@@ -5,4 +5,4 @@ "use strict"; | ||
exports.TouchModule = TouchModule_1.TouchModule; | ||
var TouchElement_1 = require("./TouchElement"); | ||
exports.TouchElement = TouchElement_1.TouchElement; | ||
var TouchComponent_1 = require("./TouchComponent"); | ||
exports.TouchComponent = TouchComponent_1.TouchComponent; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@wildebeest/touch", | ||
"version": "0.2.1", | ||
"version": "0.3.0", | ||
"description": "Touch event module", | ||
@@ -18,3 +18,4 @@ "main": "dist/index.js", | ||
"@wildebeest/js-modules": "^0.1.0", | ||
"@wildebeest/common": "^0.2.0" | ||
"@wildebeest/common": "^0.2.0", | ||
"@wildebeest/component": "^0.1.0" | ||
}, | ||
@@ -21,0 +22,0 @@ "devDependencies": { |
export { TouchModule } from './TouchModule'; | ||
export { TouchElement } from './TouchElement'; | ||
export { TouchComponent } from './TouchComponent'; |
import 'ts-jest'; | ||
import { Application } from '@wildebeest/js-modules'; | ||
import { TouchModule } from '../src/TouchModule'; | ||
import { TouchElement } from '../src/TouchElement'; | ||
import { TouchComponent } from '../src/TouchComponent'; | ||
import { DomService, EmitterService } from '@wildebeest/common'; | ||
@@ -36,3 +36,3 @@ | ||
domService.insert([element], document.body); | ||
let touchElement: TouchElement = new TouchElement(element, emitterService.createEmitter()); | ||
let touchComponent: TouchComponent = new TouchComponent(element, emitterService.createEmitter()); | ||
let value: any = { | ||
@@ -43,3 +43,3 @@ vertical: 0, | ||
touchElement.getEmitter().on('wbTouchscroll', (data: any) => { | ||
touchComponent.getEmitter().on('wbTouchscroll', (data: any) => { | ||
value.vertical += data.vertical; | ||
@@ -46,0 +46,0 @@ value.horizontal += data.horizontal; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14306
21
273
3
+ Added@wildebeest/component@^0.1.0
+ Added@wildebeest/component@0.1.3(transitive)