Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    isc.EventHandler.getWheelDeltaX & Y undefined

    SmartClient Version: v10.0p_2015-04-03/Enterprise Deployment (built 2015-04-03)

    I've just noticed that isc.EventHandler.getWheelDeltaX and isc.EventHandler.getWheelDeltaY are undefined (in ISC_Core it seems that the definition of isc.EventHandler.getWheelDelta is repeated three times).

    #2
    also, the deprecated getWheelDelta returns null in a dragMove in a liveGrid sample modified like that (using Safari on iPad iOS 8.2 - real device):

    Code:
    isc.ListGrid.create({
      ID:"dsListGrid",
      width:"100%", height:"100%"
      minFieldWidth:80,
      autoFetchData:true,
      dataSource:"supplyItem",
      canSelectCells:true,
      useTouchScrolling:false,
      canDrag:true,
      dragAppearance:"none",
      dragMove:function(){
        isc.logEcho(isc.EventHandler.getWheelDelta())
      }
    })
    isn't it possibile to detect the offset of the drag move?

    Comment


      #3
      Thanks for this report. The fix will be in nightly builds on 10.1d, 10.0p and 9.1p branches as of tomorrow, 4/9.

      Regards,
      Isomorphic Software

      Comment


        #4
        Thanks.

        But getWheelDeltaX returns null for the dragMove.

        Isn't it the right way of detecting the offset of the drag move?

        Comment


          #5
          in your example, no drag is started by mouse wheeling. What were you expecting to happen and why?

          Comment


            #6
            Actually I was expecting that, after a swipe gesture on the grid body, I could obtain the delta of the swipe movement.

            Comment


              #7
              Presumably, you are talking about a trackpad input device, as on a laptop?

              This will report a wheel delta, but generally only for a region that the browser considers scrollable and only if it fact scrolling takes place.

              Comment


                #8
                ok, thanks.
                (Actually it was for touch devices, but I have to rethink the UI)

                Comment

                Working...
                X