Jump to content

Solved: scroll other element if wheel scrolls on unicontainerpanel...


erich.wanker

Recommended Posts

  • i have a editlock = TUniContainerPanel
  • i have a UniDBMemo1 = TUniDBMemo

 

i want to scroll the UniDBMemo1 - if the mouse is over the editlock and the wheel is turning  ...     

i made this in "editlock" -> clientEvents -> Extevents:

function afterrender(sender, eOpts)
{  
    sender.getEl().dom.addEventListener('wheel', function(e) 
    {
    e.preventDefault();
    ele = document.getElementById('O73A_id-inputEl'); 
    ele.scrollTop += e.deltaY;
    }, false);
}

 

it works .. 

ThanX

Erich

 

 

Link to comment
Share on other sites

  • erich.wanker changed the title to Solved: scroll other element if wheel scrolls on unicontainerpanel...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...