asyazwan / ext-sozi

Sozi extension for SVG-Edit -- Discontinued until I have time to update for latest Sozi & SVG-Edit
MIT License
28 stars 9 forks source link

SVG-edit 2.6 - tablet buttons don't work - Sozi dev at version 13.x, ext-sozi using 11.x #2

Open HaakonME opened 11 years ago

HaakonME commented 11 years ago

Thanks for updating the demo to SVG-edit 2.6 stable so swiftly! :-)

However, it is not possible to activate all buttons on a tablet, in particular not ext-sozi button.

I don't know if the problem is in SVG-edit 2.6 stable, or in ext-sozi.

I noticed that ext-sozi uses Sozi 11.x, while Sozi dev is at version 13.x - can this be part of the problem?

The problem is present in Firefox and Chrome on the Android tablet, so the problem can also be with the browsers or Android itself, but since some buttons DO work I find this unlikely.

asyazwan commented 11 years ago

ahh, right. It seems like tap events are not listened to. Other extensions are affected as well, like grid ext... I'll see what I can do (ideally a change in svg-edit project to fix other extensions as well).

asyazwan commented 11 years ago

I've included a little hack in the demo to try and fix this. Can you try it? I've also raised this issue to the project with my proposed fix: https://code.google.com/p/svg-edit/issues/detail?id=526#c24

HaakonME commented 11 years ago

I have tried it, and Sozi-button becomes active in Firefox, but not in Chrome. It is now possible to draw shapes, change colour, and move and rotate objects. It is possible to add Sozi-frames, but it is not possible to change Sozi parameters in the layers panel on the right hand side. It is possible to choose File -> Generate , but it is not possible to hit the OK-button on the dialogue, thus the dialogue hangs the app. Upon restart, the same objects appear down to the right of the screen. Adding new objects will show the object box where the mouse cursor is, but the object itself will appear mostly off-screen, below and to the right of the preexisting objects. In short, saving the Sozi-file is not possible, and neither is preview. I'll upload screenshots later if you need it.

asyazwan commented 11 years ago

No it's ok. They all have the same source of problem -- they aren't written with touch devices in mind. So some of them are missing required events for touch devices.

I'll need more time to fix this, pretty busy lately. Sorry!

HaakonME commented 11 years ago

Okay - thanks for looking into this! :-)

HaakonME commented 11 years ago

Hi again, Ahmad! :-) Do you know if there is any progress adding touch UI to SVG-edit 2.7 and by extension to ext-sozi?

asyazwan commented 11 years ago

Hi. Unfortunately I have been out of touch with SVG-Edit and planning to discontinue this extension and stepping out of the project. I am too busy to work on this and my current projects are not utilizing SVG-Edit.

I also suggest you look for other alternatives because this extension is using outdated version of Sozi (it was the latest then, but new Sozi contains big changes like the Layer feature which is not supported in this extension).

HaakonME commented 11 years ago

Right, thanks for the heads up!