how to disable Rotary event for listview in Gear S2

This describe how to disable Rotary event for listview in Gear S2.
circle-helper.js

if (tau.support.shape.circle) {
     document.addEventListener("pagebeforeshow", function (e) {
   page = e.target;
   elScroller = page.querySelector(".ui-scroller");

   if (elScroller) {
    /*  rotary event will not be worked by this comment for listview
            list = elScroller.querySelectorAll(".ui-listview");
            
            if (list) {
             len = list.length;
             for (i = 0; i < len; i++) {
              listHelper[i] = tau.helper.SnapListStyle.create(list[i]);
             }
             len = listHelper.length;
             if (len) {
              for (i = 0; i < len; i++) {
               snapList[i] = listHelper[i].getSnapList();
              }
             }
            }
    */
    elScroller.setAttribute("tizen-circular-scrollbar", "");
   }
  });

Responses

0 Replies