Marco Uberti

Results 4 comments of Marco Uberti

Same problem here. If I use a Spannable text view my custom Style the stylized part of the text is not resized.

I used this workaround: convert touch events into mouse event. Revision of http://stackoverflow.com/questions/1517924/javascript-mapping-touch-events-to-mouse-events?answertab=active#tab-top ``` javascript //TOUCH EVENT TO MOUSE EVENT function touchHandler(event) { var touches = event.changedTouches, first = touches[0],...

See here: https://github.com/rstgroup/fabricjs-viewport/issues/14

Try this workaround: ``` canvas.viewport.position.x = 0; canvas.viewport.position.y = 0; canvas.isGrabMode = false; canvas.setZoom(1.0); //two times needed canvas.viewport.position.x = 0; canvas.viewport.position.y = 0; canvas.isGrabMode = false; canvas.setZoom(1.0); ``` Best, Marco