Skip to content
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

Closed
danielweck opened this issue Jan 10, 2017 · 7 comments
Closed

Highlights: jQuery touch event "undefined" bug #365

danielweck opened this issue Jan 10, 2017 · 7 comments

Comments

@danielweck
Copy link
Member

https://github.com/readium/readium-shared-js/blob/develop/plugins/highlights/models/group.js#L376
var lastTouch = _.last(e.changedTouches);
changedTouches is undefined, should be e.originalEvent.changedTouches
(e is jQuery event)

@danielweck
Copy link
Member Author

CC @jccr

@danielweck
Copy link
Member Author

Reported by @nimisis at readium/SDKLauncher-iOS#91 (comment)

@danielweck
Copy link
Member Author

danielweck commented Jan 10, 2017

Also reported by @kivuto (Texidium)

@danielweck
Copy link
Member Author

Fixed: 5c24c38

@danielweck
Copy link
Member Author

@sercanl
Copy link

sercanl commented Oct 18, 2018

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')

@danielweck
Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants