Views not working on Chrome

Bug #1686551 reported by DaFeBa
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Undecided
Jabiertxof
JessyInk
New
Undecided
Unassigned

Bug Description

I made a presentation in one page with view changes.

in my PC (Firefox on linux) works fine, but in latest Chrome for Windows and Android, fail to play in the correct order.

Here is an example:

vmodiseño.com.ar/diapo/ji1.svg

Revision history for this message
DaFeBa (dario-badagnani) wrote :

Also not working well in Chromium 58 on Linux

Revision history for this message
Jacek (Hyacinth) Stypuła (js-ubuntuone) wrote :

This is caused by a new "feature" in Chrome, see https://www.chromestatus.com/feature/5736166087196672

A simple workaround is to add the following snippet at the end of jessyInk.js (http://bazaar.launchpad.net/~hannes-hochreiner/jessyink/trunk/view/head:/scripts/jessyInk.js):

/** `SVGElement.getTransformToElement` polyfill
 */
SVGElement.prototype.getTransformToElement = SVGElement.prototype.getTransformToElement || function(elem) {
 return elem.getScreenCTM().inverse().multiply(this.getScreenCTM());
};

Revision history for this message
DaFeBa (dario-badagnani) wrote :

Hi: How can update jessyink with this workaround? I tried replacing the original jessyink.js with this version. After updating the jessyink, the SVG is slightly heavier, but it doesn't fix the bug in chromium.

Revision history for this message
DaFeBa (dario-badagnani) wrote :

I tested the original SVG file, adding the code Jacek Hyacinth Stypuła provided and seems to works. You can test and compare with the original file:

vmodiseño.com.ar/diapo/ji3.svg

Revision history for this message
Jabiertxof (jabiertxof) wrote :

This patch from Jacek Hyacinth Stypuła Fixes the problem in inkscape

Changed in jessyink:
assignee: nobody → Jabiertxof (jabiertxof)
Changed in inkscape (Ubuntu):
assignee: nobody → Jabiertxof (jabiertxof)
affects: inkscape (Ubuntu) → inkscape
Changed in jessyink:
assignee: Jabiertxof (jabiertxof) → nobody
Revision history for this message
Jabiertxof (jabiertxof) wrote :

Fixed in master in r.f5680325a3..cad1e0ce01

Revision history for this message
Jabiertxof (jabiertxof) wrote :

Git patch for 0.92.2

Revision history for this message
Patrick Storz (ede123) wrote :
Changed in inkscape:
milestone: none → 0.92.2
status: New → Fix Committed
jazzynico (jazzynico)
Changed in inkscape:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.