Mouse Wheel Issue in Win - VST

Discuss issues relating to audio plugins

Mouse Wheel Issue in Win - VST

Postby Shlomi » Tue Jul 31, 2012 12:47 pm

Hello

When using the mouse wheel inside a viewport (ListBox or Viewport directly) the vertical scroll bar is immediately scrolls to the upper left regardless of
the position of the scrolling / the amount scrolled.

This only happens in VST mode, in standalone mode it works fine (it also works fine in Mac standalone / AU / VST )

I've found that in the func. doMouseWheel() the line:

Code: Select all
const float amount = jlimit (-1000.0f, 1000.0f, 0.5f * (short) HIWORD (wParam));


Always returns 1000 in the problematic cases.



Thanks
User avatar
Shlomi
JUCE UberWeenie
 
Posts: 395
Joined: Tue Dec 28, 2010 2:06 pm

Re: Mouse Wheel Issue in Win - VST

Postby jules » Tue Jul 31, 2012 1:56 pm

User avatar
jules
Fearless Leader
 
Posts: 17369
Joined: Mon Sep 06, 2004 9:03 am
Location: London, UK

Re: Mouse Wheel Issue in Win - VST

Postby ckk » Tue Jul 31, 2012 2:31 pm

A similar issue is discribed here: When more than one Juce-based plugin is opened only the last opened will get valid mouse messages.

I just added this Component to the Juce demo plugin where the mousewheel worked fine with the Viewport:
Code: Select all
class Container : public Viewport
{
public:
  Container()
  {
    editor.setSize(50, 200);
    setViewedComponent(&editor, false);
  }
private:
  TextEditor editor;
};

It was sized to show a scroll bar (50x150). Could it be you ran into the issue described above?


Chris
ckk
JUCE UberWeenie
 
Posts: 218
Joined: Thu May 20, 2010 7:43 pm

Re: Mouse Wheel Issue in Win - VST

Postby Shlomi » Tue Jul 31, 2012 7:54 pm

This workaround won't work for me but the thread you posted seems to hold the answer.
I'll check it out.

Thanks!
User avatar
Shlomi
JUCE UberWeenie
 
Posts: 395
Joined: Tue Dec 28, 2010 2:06 pm

Re: Mouse Wheel Issue in Win - VST

Postby Shlomi » Sun Aug 12, 2012 10:55 am

It appears that it only happens when I use a cheap mouse ( 'Silver Line' ) it works fine with a standard mouse.
User avatar
Shlomi
JUCE UberWeenie
 
Posts: 395
Joined: Tue Dec 28, 2010 2:06 pm

Re: Mouse Wheel Issue in Win - VST

Postby TheVinn » Sun Aug 12, 2012 7:38 pm

Shlomi wrote:It appears that it only happens when I use a cheap mouse ( 'Silver Line' ) it works fine with a standard mouse.


How is this even possible? I thought Windows used standard generic drivers for mice (the vendor specific driver can be installed to gain additional features but without it, the generic driver provides basic functions). If this is the case then mouse behavior should be independent of the application. Unless, your mouse has installed some kind of special software that treats applications differently. Logitech for example can do this, customize the mouse for each app (usually a game).
Open Source: LayerEffects, VFLib, SimpleDJ, DSP Filters, LuaBridge, JUCE, FreeType, TagLib
"This isn't a big project, it shouldn't take long." - Jules
User avatar
TheVinn
JUCE UberWeenie
 
Posts: 2989
Joined: Sat Aug 29, 2009 11:31 am
Location: Marina del Rey, California

Re: Mouse Wheel Issue in Win - VST

Postby Shlomi » Mon Aug 13, 2012 7:49 am

When I first connected both of them Windows showed a messages that it is installing their drivers, so I guess it's a specific driver issue.
User avatar
Shlomi
JUCE UberWeenie
 
Posts: 395
Joined: Tue Dec 28, 2010 2:06 pm


Return to Audio Plugins

Who is online

Users browsing this forum: No registered users and 1 guest