Views not working on Chrome

Bug #1686551 reported by DaFeBa on 2017-04-26
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Inkscape
Undecided
Jabiertxof
JessyInk
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

DaFeBa (dario-badagnani) wrote :

Also not working well in Chromium 58 on Linux

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());
};

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.

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

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
Jabiertxof (jabiertxof) wrote :

Fixed in master in r.f5680325a3..cad1e0ce01

Jabiertxof (jabiertxof) wrote :

Git patch for 0.92.2

Eduard Braun (eduard-braun2) wrote :
Changed in inkscape:
milestone: none → 0.92.2
status: New → Fix Committed
jazzynico (jazzynico) on 2017-08-31
Changed in inkscape:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers