You failed to see his point. Ctrl + mouse wheel scales the page not the text - it scales images, elements, text and everything
LOL Alex Mcauley http://www.thevacancymarket.com ----- Original Message ----- From: "Matt Foster" <[email protected]> To: "Prototype & script.aculo.us" <[email protected]> Sent: Thursday, October 08, 2009 6:58 PM Subject: [Proto-Scripty] Re: How to fire a custom/synthetic "Control key + mouse scroll wheel movement" event? So just as a recap, you're looking to simulate the ctrl + mouse wheel event such that the native processing for zoom magnification applies? > This is a highly useful feature, I would love to add some "widgets" > type icons (magnifier glasses with a + and -) on my site that allows > people to rescale the document image using it. It would very intuitive > (just click the +magnifier icon to make it bigger and visa versa). So really you want a control on your page that increases font size? My approach would be to design everything I want to be scalable using the "em" unit so that everything is relative. Set a modest em level at the body level such that everything else is relative to this value. Then the control simply modifies the value for this to propagate the zoom in/out effect. http://pastie.org/647201 -- http://positionabsolute.net On Oct 8, 12:16 pm, tcupolo <[email protected]> wrote: > @Radoslav, > > I took some time today to look through your patch. It would make this > function very easy to implement. > It would take the form of a "keypress" event with ctrlkey=true and the > necessary keyCode and charCode values. > > What is it's status? Will it make it into a future version of > Prototype anytime soon? > If not, what is the recommended way of using a patch like this? (I > assume including it as a seperate js file on each page override the > original function definition of "fire", but that's not completely > clear.) > > It took a little time for me to realize but I think it's the best way > to go for a cross-browser compatible ZOOM solution. > Thanks for the reply. > > On Oct 1, 7:47 am, Radoslav Stankov <[email protected]> wrote: > > > A time ago I have created ticket and a patch for making Event.fire to > > fire event > > (https://prototype.lighthouseapp.com/projects/8886/tickets/697-eventfi... > > ) > > > Here is a git forhttp://gist.github.com/121011 > > I hope it's useful --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---
