readium / readium-shared-js

Repository for the shared JavaScript libraries that are used in the SDK-Launchers and other applications developed on top of the SDK
BSD 3-Clause "New" or "Revised" License
78 stars 102 forks source link

Drawing in EPUB is not following the cursor. #264

Open rkwright opened 8 years ago

rkwright commented 8 years ago

Background Info We were sent the EPUB by a user. It is a government book for kids that has maze-following quiz.

Steps to Reproduce Open the file in the Chrome Extension. Go to the back of the book where the maze is. Try to draw in the maze.

Expected Behaviour Should be able to draw the lines around in the maze following the cursor.

Actual Behaviour In Chrome Extensions, The resulting lines are nowhere near where the cursor is (practically off the canvas). Note that the previous page with "Jane Grain" exhibits the same problems.

Environment Tested with 0.23 (develop) Chrome Extension on MacBookPro running OSX 10.10

Other Info Renders fine in iBooks on the same machine. Passes EPUBCheck with a few warnings about file extensions.

Test File Test file is here.

danielweck commented 8 years ago

I am able to reproduce this bug using the latest cloud reader app build from the develop branch (direct link to the GitHub-hosted sample EPUB file): https://readium.firebaseapp.com/?epub=https%3A%2F%2Frawgit.com%2Freadium%2Freadium-test-files%2Fmaster%2Fissue-files%2Fshared-js%2F264%2FDiscover_MyPlate_Grains.epub