You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently trying to implement a line chart where the user can drag over the chart and see the current underlying value.
While it works great for desktop devices using the mouse:
It doesn't seem to work on touch devices:
It seems like while all the events are correctly triggered (see signal recorder), it won't update the picked element, since it will only compute it ones during touchstart, see also
My usecase is applying Vega to declaratively make input interactions, but ineffective drag handling => no mobile is a big blocker. Heres an example and it is working on mobile due to patching PR #3547 and using canvas (thanks @guersam !).
I would love to see this fixed upstream since declarative interaction is a big unique feature of Vega!
@declann If this is a blocker, please help out. I agree that mobile support is really needed these days. We started some improvements in Vega recently: #3781
I'm currently trying to implement a line chart where the user can drag over the chart and see the current underlying value.
While it works great for desktop devices using the mouse:
It doesn't seem to work on touch devices:
It seems like while all the events are correctly triggered (see signal recorder), it won't update the picked element, since it will only compute it ones during
touchstart
, see alsovega/packages/vega-scenegraph/src/CanvasHandler.js
Lines 122 to 144 in ec61d7a
The Vega Lite example I'm using:
https://vega.github.io/editor/#/url/vega-lite/N4IgJAzgxgFgpgWwIYgFwhgF0wBwqgegIDc4BzJAOjIEtMYBXAI0poHsDp5kTykBaADZ04JACyUAVhDYA7EABoQAEzjQATjRyZ289AHE2bMoLgByCAAIImNlADWlnJqhxLbUuss6EcSopUkTBRUUAZ1QTRA4M5bBwhKKAhiEABfJUx1JFkIADM2dQQ0AG1QXJpBTDh1KOUghgRKCABPBCY2QQBebrN9AHk+-TM0gF0lOFkoNmUaWTI0UAAPBZByuEFlWqC4AMxmnB30KoQcAqRI1PSQHCRlGbmV2xw0AEYABivBJGbqktBkdT2KLCWQ7caTaazeahEDNFZrDZRZw0Vy7faHEAARwY2R0wR0pDSlwUoAg6zgUB0chWMBoZBgwnpmEe6KiEChpgCiG0cPQsjkYJA1PQUGEDgUlmKCDYDDJyjYAHdZBKFbN5QrUNLZXAGDgRpYAHyWLVk6WkCXFWwMWA2JDqTASq2wCbKfVGp0wM2C0F2tTM1CZBhwJSiuB2tC5c5k8FTe5kCAlEDLEbEkAAoEwvYHJFsWbMpTsgBehwArB8Y5CHjDeWUaOtNuhkaiMqz0NjcXQgjRCZd0qBMtk8gUiqhSqsKlUajCyaZKboorT6YysESxmm7RmQOoGJy+yABzl8oU-uPKr9p+S58KMHSGbfmZc1+mWdmjnBFvmQOc6XpQO-nFEAAUqrKPQlj8NYUDnHAgFmIsZgSnUmANJQSFwAAlOhlgADyWAAzG8lgAPyWGYmhMmYlioJYgHQNBsHwYh9SNGhmGGvhhEkWYriyJOlHUWYpi5JgwxXEwSAzrMGLtNgbBFEoyi8vwLxXBMsZQo877+rW9ZbFUaKvvu3JnBcSg1iAxDnEGaAfI+qRAA
The text was updated successfully, but these errors were encountered: