magic-script/magic-script-components

Properties with same value not passed on mobile

Opened this issue · 0 comments

When the "single action" property, like scrollToItem is set with the same value again, we don't get the value in the native components manager, because we probably compare the old and new value in the platform factory and call the update only if the value has changed. But sometimes it's not desirable - look at the following example:

  1. Create ListView with some items and set the scrollToItem property to 3 (for example).
  1. Run the scene and scroll manually the list view to any other item.
  1. Set dynamically scrollToItem property again to 3

Result: On Android (and probably on iOS also) the list is not scrolled again to item 3. On Lumin the problem does not occur.