Hybrid View

  1. #1
    Ext User
    Join Date
    Apr 2008
    Posts
    6
    Vote Rating
    0
    smerickson is on a distinguished road

      0  

    Default Add support for mouse scrolling (for development)

    Add support for mouse scrolling (for development)


    It would be really helpful if there was a way to enable mouse scrolling during development. I will often develop my mobile apps on my desktop browser and I'd like to be able to just use my mouse scroll wheel to scroll some elements, rather than clicking, holding and moving the mouse. Any plans to just wire up mouse scroll events to the scroller for testing purposes?

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,525
    Vote Rating
    871
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Why? Don't you want to emulate what your attending audience will be doing?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Ext User
    Join Date
    Apr 2008
    Posts
    6
    Vote Rating
    0
    smerickson is on a distinguished road

      0  

    Default


    I find it too cumbersome and time consuming to refresh my iphone every time i want to test a change. and if I use a mobile browser emulator on my desktop, it just feels weird to click and hold the mouse and drag to scroll a list. you're right that I definitely will be testing things on a real mobile device before shipping it, but during the first few rapid iterations of a change, it would be nicer and faster to just work with it on the desktop.

  4. #4
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,525
    Vote Rating
    871
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    I do not mean to offend you and I can respect that everyone has their own development method but I just think it's trivial. IMO
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  5. #5
    Sencha User
    Join Date
    Aug 2011
    Posts
    1
    Vote Rating
    0
    gwan is on a distinguished road

      0  

    Default


    Hi,

    Sorry to reactivate this thread but I would like to know if it's possible to use mouse scrolling for any component in sencha touch.

    I think that sencha touch could be a great framework to create a multi-device application, working both on mobile device or on desktop browser. But, because I do not succeed to use my mouse to scroll on any component I can reach properly my goal.

    You did great job on this framework and I know that it is not your priority right now but if you know a hack to do so, it would be great to help me.

    Thanks.

  6. #6
    Sencha User
    Join Date
    Sep 2011
    Posts
    7
    Vote Rating
    0
    Alex Vangelov is on a distinguished road

      0  

    Default workaraund

    workaraund


    I'm using coffeescript but the idea is visible:
    Code:
    app.body.on('mousewheel', (event,el) ->       
          offset = Ext.util.Offset()
          while (el != document.body) 
            if el.className == "x-scroller"
              scroller = Ext.ScrollManager.get(el.id);
              if event.browserEvent.wheelDelta > 0
                # scrollUp(scroller)
              else 
                # scrollDown(scroller)
              break
            el = el.parentNode
        )
    Who can help with nice elastic scroll functions?
    Also there is a problem .. have to click in the scroll area to activate scroller for the first time

Similar Threads

  1. Scrolling in a gridpanel when mouse is on bottom of the grid
    By hominis in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 13 Jul 2010, 2:00 AM
  2. Forms Development Support Framework Poll
    By dardison in forum Community Discussion
    Replies: 1
    Last Post: 8 May 2008, 1:05 PM
  3. Issue Support and Continued Development
    By j05h in forum Community Discussion
    Replies: 9
    Last Post: 7 Feb 2007, 7:41 PM

Thread Participants: 17