ChocolateBar Broker Display

58 - OnMouseWheel support

Hi.

i've build a libdatabroker plugin with onclick and onmousewheel usage
but chocolate bar did not support <LibDataBrokerObject>:OnMouseWheel(self, direction).
Therefore, I ask for the supplement of this function in their project. thanks.

greetings
Hizuro

User When Change
hizuro Nov 15, 2013 at 06:12 UTC Create

You must login to post a comment. Don't have an account? Register to get one!

  • 2 comments
  • Avatar of hizuro hizuro Nov 16, 2013 at 03:30 UTC - 0 likes

    @yess: Go

    thanks for the display independent example. i try it out.

    Quote from yess:

    do other display addons support <LibDataBrokerObject>:OnMouseWheel(self, direction)?

    yes, i've found code in Bazooka and DockingStation

    greetings Hizuro

  • Avatar of yess yess Nov 15, 2013 at 23:51 UTC - 0 likes

    Hi,

    do other display addons support <LibDataBrokerObject>:OnMouseWheel(self, direction)?

    The way i do this in my broker plugins is adding the scroll handler in the plugin itself:

    local function OnScroll(self, vector)
    	--handle scrolling here		
    end
    
    function dataobj:OnEnter()
    	self:EnableMouseWheel(1) 
    	self:SetScript("OnMouseWheel", OnScroll)
    	--do the tooltip stuff...
    end
    

    this should work with any display addon ;)

    Last edited Nov 15, 2013 by yess
  • 2 comments

Facts

Reported
Nov 15, 2013
Status
New - Issue has not had initial review yet.
Type
Enhancement - A change which is intended to better the project in some way
Priority
Medium - Normal priority.
Votes
0

Reported by

Possible assignees