unveil icon indicating copy to clipboard operation
unveil copied to clipboard

Removed unnecessary window height calculations to minimize reflows. Added an option to throttle scroll and resize events. Cleaned up the plugin API to use an options object rather than arguments.

Open mstuart opened this issue 11 years ago • 9 comments

  • Removed unnecessary window height calculations to minimize reflows.
  • Added an option to throttle scroll and resize events.
  • Cleaned up the plugin API to use an options object rather than arguments.

mstuart avatar Oct 01 '13 06:10 mstuart

Hi Mark,

Sorry for taking a couple days to add my feedback to this PR. This PR adds some features that this plugin really needs, especially throttling the scroll and resize events. It's cool that you changed it to accept an options object but the thing is, the callback function should also be part of the options object and if we do that, it's going to break compatibility. If I merge this PR I'll have to bump the version to v2 and I'm all already working on the v2 version which is almost ready and will include a throttle option as well .

luis-almeida avatar Oct 03 '13 12:10 luis-almeida

Great PR!

christianhaller avatar Dec 12 '13 17:12 christianhaller

Is this going to be merged?

richardthombs avatar Mar 04 '14 17:03 richardthombs

+1

o-l-e avatar Mar 26 '14 21:03 o-l-e

@mstuart i found an issue with your fork: it seems like it is not working on my iPhone 4 with iOS7. The images are not loading at all. Could it have something to do with the "height calculations"? I am no javascript expert, but i know scrolling is different on touch devices.

o-l-e avatar Mar 27 '14 18:03 o-l-e

Oops sorry. I haven't tested on iOS7. This PR is very old. I'll check it out tonight

mstuart avatar Mar 27 '14 19:03 mstuart

:+1: when this will get merged?.

arkmediastudio avatar Mar 29 '14 12:03 arkmediastudio

before i had to set height for each image to get it work, with this change i no longer need to set height attr for image, which is great for responsive design.

arkmediastudio avatar Mar 29 '14 12:03 arkmediastudio

+1

spchuang avatar Aug 29 '14 23:08 spchuang