-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Highlights: jQuery touch event "undefined" bug #365
Comments
CC @jccr |
Reported by @nimisis at readium/SDKLauncher-iOS#91 (comment) |
Also reported by @kivuto (Texidium) |
Fixed: 5c24c38 |
Note: was fixed in Mantano's PR! |
Hi @danielweck , I wonder if this commit (5c24c38) is still valid in later versions of Readium. I looked it up in various releases, but couldn't find it. I am struggling with an iOS touchend problem which is triggered from group.js file. ( inside boundHighlightCallback(...) ) Error message in console: TypeError: undefined is not an object (evaluating 's.pageX') |
The "highlight" plugin (previously-named "annotation") was an experiment implemented by @jccr / @evidentpoint (if I remember correctly) and although it showed a lot of promise, it was incomplete and unmaintained. So the pragmatic solution was to replace it with the "hypothesis" plugin which delegates the entire functionality to the cloud service https://web.hypothes.is |
https://github.com/readium/readium-shared-js/blob/develop/plugins/highlights/models/group.js#L376
var lastTouch = _.last(e.changedTouches);
changedTouches
is undefined, should bee.originalEvent.changedTouches
(
e
is jQuery event)The text was updated successfully, but these errors were encountered: